home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 32 / CD Expert nº 32.iso / Unreal T / utdemo338.exe / System / UWindow.u / ScriptText1.TextBuffer < prev    next >
Unknown  |  1999-09-27  |  20.6 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5e c9 02 63 6c 61 73 73 |........|^..class|
|00000010| 20 55 57 69 6e 64 6f 77 | 57 69 6e 39 35 4c 6f 6f | UWindow|Win95Loo|
|00000020| 6b 41 6e 64 46 65 65 6c | 20 65 78 70 61 6e 64 73 |kAndFeel| expands|
|00000030| 20 55 57 69 6e 64 6f 77 | 4c 6f 6f 6b 41 6e 64 46 | UWindow|LookAndF|
|00000040| 65 65 6c 3b 0d 0a 0d 0a | 23 65 78 65 63 20 54 45 |eel;....|#exec TE|
|00000050| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|00000060| 45 3d 41 63 74 69 76 65 | 46 72 61 6d 65 20 46 49 |E=Active|Frame FI|
|00000070| 4c 45 3d 54 65 78 74 75 | 72 65 73 5c 41 63 74 69 |LE=Textu|res\Acti|
|00000080| 76 65 46 72 61 6d 65 2e | 62 6d 70 20 47 52 4f 55 |veFrame.|bmp GROU|
|00000090| 50 3d 22 49 63 6f 6e 73 | 22 20 46 4c 41 47 53 3d |P="Icons|" FLAGS=|
|000000a0| 32 20 4d 49 50 53 3d 4f | 46 46 0d 0a 23 65 78 65 |2 MIPS=O|FF..#exe|
|000000b0| 63 20 54 45 58 54 55 52 | 45 20 49 4d 50 4f 52 54 |c TEXTUR|E IMPORT|
|000000c0| 20 4e 41 4d 45 3d 49 6e | 61 63 74 69 76 65 46 72 | NAME=In|activeFr|
|000000d0| 61 6d 65 20 46 49 4c 45 | 3d 54 65 78 74 75 72 65 |ame FILE|=Texture|
|000000e0| 73 5c 49 6e 61 63 74 69 | 76 65 46 72 61 6d 65 2e |s\Inacti|veFrame.|
|000000f0| 62 6d 70 20 47 52 4f 55 | 50 3d 22 49 63 6f 6e 73 |bmp GROU|P="Icons|
|00000100| 22 20 46 4c 41 47 53 3d | 32 20 4d 49 50 53 3d 4f |" FLAGS=|2 MIPS=O|
|00000110| 46 46 0d 0a 23 65 78 65 | 63 20 54 45 58 54 55 52 |FF..#exe|c TEXTUR|
|00000120| 45 20 49 4d 50 4f 52 54 | 20 4e 41 4d 45 3d 41 63 |E IMPORT| NAME=Ac|
|00000130| 74 69 76 65 46 72 61 6d | 65 53 20 46 49 4c 45 3d |tiveFram|eS FILE=|
|00000140| 54 65 78 74 75 72 65 73 | 5c 41 63 74 69 76 65 46 |Textures|\ActiveF|
|00000150| 72 61 6d 65 53 2e 62 6d | 70 20 47 52 4f 55 50 3d |rameS.bm|p GROUP=|
|00000160| 22 49 63 6f 6e 73 22 20 | 46 4c 41 47 53 3d 32 20 |"Icons" |FLAGS=2 |
|00000170| 4d 49 50 53 3d 4f 46 46 | 0d 0a 23 65 78 65 63 20 |MIPS=OFF|..#exec |
|00000180| 54 45 58 54 55 52 45 20 | 49 4d 50 4f 52 54 20 4e |TEXTURE |IMPORT N|
|00000190| 41 4d 45 3d 49 6e 61 63 | 74 69 76 65 46 72 61 6d |AME=Inac|tiveFram|
|000001a0| 65 53 20 46 49 4c 45 3d | 54 65 78 74 75 72 65 73 |eS FILE=|Textures|
|000001b0| 5c 49 6e 61 63 74 69 76 | 65 46 72 61 6d 65 53 2e |\Inactiv|eFrameS.|
|000001c0| 62 6d 70 20 47 52 4f 55 | 50 3d 22 49 63 6f 6e 73 |bmp GROU|P="Icons|
|000001d0| 22 20 46 4c 41 47 53 3d | 32 20 4d 49 50 53 3d 4f |" FLAGS=|2 MIPS=O|
|000001e0| 46 46 0d 0a 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |FF....#e|xec TEXT|
|000001f0| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|00000200| 4d 69 73 63 20 46 49 4c | 45 3d 54 65 78 74 75 72 |Misc FIL|E=Textur|
|00000210| 65 73 5c 4d 69 73 63 2e | 62 6d 70 20 47 52 4f 55 |es\Misc.|bmp GROU|
|00000220| 50 3d 22 49 63 6f 6e 73 | 22 20 4d 49 50 53 3d 4f |P="Icons|" MIPS=O|
|00000230| 46 46 0d 0a 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |FF....#e|xec TEXT|
|00000240| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|00000250| 43 68 6b 43 68 65 63 6b | 65 64 20 46 49 4c 45 3d |ChkCheck|ed FILE=|
|00000260| 54 65 78 74 75 72 65 73 | 5c 43 68 6b 43 68 65 63 |Textures|\ChkChec|
|00000270| 6b 65 64 2e 62 6d 70 20 | 47 52 4f 55 50 3d 22 49 |ked.bmp |GROUP="I|
|00000280| 63 6f 6e 73 22 20 46 4c | 41 47 53 3d 32 20 4d 49 |cons" FL|AGS=2 MI|
|00000290| 50 53 3d 4f 46 46 0d 0a | 23 65 78 65 63 20 54 45 |PS=OFF..|#exec TE|
|000002a0| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|000002b0| 45 3d 43 68 6b 55 6e 63 | 68 65 63 6b 65 64 20 46 |E=ChkUnc|hecked F|
|000002c0| 49 4c 45 3d 54 65 78 74 | 75 72 65 73 5c 43 68 6b |ILE=Text|ures\Chk|
|000002d0| 55 6e 63 68 65 63 6b 65 | 64 2e 62 6d 70 20 47 52 |Unchecke|d.bmp GR|
|000002e0| 4f 55 50 3d 22 49 63 6f | 6e 73 22 20 46 4c 41 47 |OUP="Ico|ns" FLAG|
|000002f0| 53 3d 32 20 4d 49 50 53 | 3d 4f 46 46 0d 0a 23 65 |S=2 MIPS|=OFF..#e|
|00000300| 78 65 63 20 54 45 58 54 | 55 52 45 20 49 4d 50 4f |xec TEXT|URE IMPO|
|00000310| 52 54 20 4e 41 4d 45 3d | 43 68 6b 43 68 65 63 6b |RT NAME=|ChkCheck|
|00000320| 65 64 44 69 73 61 62 6c | 65 64 20 46 49 4c 45 3d |edDisabl|ed FILE=|
|00000330| 54 65 78 74 75 72 65 73 | 5c 43 68 6b 43 68 65 63 |Textures|\ChkChec|
|00000340| 6b 65 64 44 69 73 61 62 | 6c 65 64 2e 62 6d 70 20 |kedDisab|led.bmp |
|00000350| 47 52 4f 55 50 3d 22 49 | 63 6f 6e 73 22 20 46 4c |GROUP="I|cons" FL|
|00000360| 41 47 53 3d 32 20 4d 49 | 50 53 3d 4f 46 46 0d 0a |AGS=2 MI|PS=OFF..|
|00000370| 23 65 78 65 63 20 54 45 | 58 54 55 52 45 20 49 4d |#exec TE|XTURE IM|
|00000380| 50 4f 52 54 20 4e 41 4d | 45 3d 43 68 6b 55 6e 63 |PORT NAM|E=ChkUnc|
|00000390| 68 65 63 6b 65 64 44 69 | 73 61 62 6c 65 64 20 46 |heckedDi|sabled F|
|000003a0| 49 4c 45 3d 54 65 78 74 | 75 72 65 73 5c 43 68 6b |ILE=Text|ures\Chk|
|000003b0| 55 6e 63 68 65 63 6b 65 | 64 44 69 73 61 62 6c 65 |Unchecke|dDisable|
|000003c0| 64 2e 62 6d 70 20 47 52 | 4f 55 50 3d 22 49 63 6f |d.bmp GR|OUP="Ico|
|000003d0| 6e 73 22 20 46 4c 41 47 | 53 3d 32 20 4d 49 50 53 |ns" FLAG|S=2 MIPS|
|000003e0| 3d 4f 46 46 0d 0a 0d 0a | 23 65 78 65 63 20 54 45 |=OFF....|#exec TE|
|000003f0| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|00000400| 45 3d 4d 65 6e 75 42 61 | 72 20 46 49 4c 45 3d 54 |E=MenuBa|r FILE=T|
|00000410| 65 78 74 75 72 65 73 5c | 4d 65 6e 75 42 61 72 2e |extures\|MenuBar.|
|00000420| 62 6d 70 20 47 52 4f 55 | 50 3d 22 49 63 6f 6e 73 |bmp GROU|P="Icons|
|00000430| 22 20 4d 49 50 53 3d 4f | 46 46 0d 0a 23 65 78 65 |" MIPS=O|FF..#exe|
|00000440| 63 20 54 45 58 54 55 52 | 45 20 49 4d 50 4f 52 54 |c TEXTUR|E IMPORT|
|00000450| 20 4e 41 4d 45 3d 4d 65 | 6e 75 48 69 67 68 6c 69 | NAME=Me|nuHighli|
|00000460| 67 68 74 4c 20 46 49 4c | 45 3d 54 65 78 74 75 72 |ghtL FIL|E=Textur|
|00000470| 65 73 5c 4d 65 6e 75 48 | 69 67 68 6c 69 67 68 74 |es\MenuH|ighlight|
|00000480| 4c 2e 62 6d 70 20 46 4c | 41 47 53 3d 32 20 47 52 |L.bmp FL|AGS=2 GR|
|00000490| 4f 55 50 3d 22 49 63 6f | 6e 73 22 20 4d 49 50 53 |OUP="Ico|ns" MIPS|
|000004a0| 3d 4f 46 46 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |=OFF..#e|xec TEXT|
|000004b0| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|000004c0| 4d 65 6e 75 48 69 67 68 | 6c 69 67 68 74 4d 20 46 |MenuHigh|lightM F|
|000004d0| 49 4c 45 3d 54 65 78 74 | 75 72 65 73 5c 4d 65 6e |ILE=Text|ures\Men|
|000004e0| 75 48 69 67 68 6c 69 67 | 68 74 4d 2e 62 6d 70 20 |uHighlig|htM.bmp |
|000004f0| 46 4c 41 47 53 3d 32 20 | 47 52 4f 55 50 3d 22 49 |FLAGS=2 |GROUP="I|
|00000500| 63 6f 6e 73 22 20 4d 49 | 50 53 3d 4f 46 46 0d 0a |cons" MI|PS=OFF..|
|00000510| 23 65 78 65 63 20 54 45 | 58 54 55 52 45 20 49 4d |#exec TE|XTURE IM|
|00000520| 50 4f 52 54 20 4e 41 4d | 45 3d 4d 65 6e 75 48 69 |PORT NAM|E=MenuHi|
|00000530| 67 68 6c 69 67 68 74 52 | 20 46 49 4c 45 3d 54 65 |ghlightR| FILE=Te|
|00000540| 78 74 75 72 65 73 5c 4d | 65 6e 75 48 69 67 68 6c |xtures\M|enuHighl|
|00000550| 69 67 68 74 52 2e 62 6d | 70 20 46 4c 41 47 53 3d |ightR.bm|p FLAGS=|
|00000560| 32 20 47 52 4f 55 50 3d | 22 49 63 6f 6e 73 22 20 |2 GROUP=|"Icons" |
|00000570| 4d 49 50 53 3d 4f 46 46 | 0d 0a 0d 0a 23 65 78 65 |MIPS=OFF|....#exe|
|00000580| 63 20 54 45 58 54 55 52 | 45 20 49 4d 50 4f 52 54 |c TEXTUR|E IMPORT|
|00000590| 20 4e 41 4d 45 3d 4d 65 | 6e 75 41 72 65 61 20 46 | NAME=Me|nuArea F|
|000005a0| 49 4c 45 3d 54 65 78 74 | 75 72 65 73 5c 4d 65 6e |ILE=Text|ures\Men|
|000005b0| 75 41 72 65 61 2e 62 6d | 70 20 47 52 4f 55 50 3d |uArea.bm|p GROUP=|
|000005c0| 22 49 63 6f 6e 73 22 20 | 4d 49 50 53 3d 4f 46 46 |"Icons" |MIPS=OFF|
|000005d0| 0d 0a 23 65 78 65 63 20 | 54 45 58 54 55 52 45 20 |..#exec |TEXTURE |
|000005e0| 49 4d 50 4f 52 54 20 4e | 41 4d 45 3d 4d 65 6e 75 |IMPORT N|AME=Menu|
|000005f0| 54 4c 20 46 49 4c 45 3d | 54 65 78 74 75 72 65 73 |TL FILE=|Textures|
|00000600| 5c 4d 65 6e 75 54 4c 2e | 62 6d 70 20 47 52 4f 55 |\MenuTL.|bmp GROU|
|00000610| 50 3d 22 49 63 6f 6e 73 | 22 20 4d 49 50 53 3d 4f |P="Icons|" MIPS=O|
|00000620| 46 46 0d 0a 23 65 78 65 | 63 20 54 45 58 54 55 52 |FF..#exe|c TEXTUR|
|00000630| 45 20 49 4d 50 4f 52 54 | 20 4e 41 4d 45 3d 4d 65 |E IMPORT| NAME=Me|
|00000640| 6e 75 54 20 46 49 4c 45 | 3d 54 65 78 74 75 72 65 |nuT FILE|=Texture|
|00000650| 73 5c 4d 65 6e 75 54 2e | 62 6d 70 20 47 52 4f 55 |s\MenuT.|bmp GROU|
|00000660| 50 3d 22 49 63 6f 6e 73 | 22 20 4d 49 50 53 3d 4f |P="Icons|" MIPS=O|
|00000670| 46 46 0d 0a 23 65 78 65 | 63 20 54 45 58 54 55 52 |FF..#exe|c TEXTUR|
|00000680| 45 20 49 4d 50 4f 52 54 | 20 4e 41 4d 45 3d 4d 65 |E IMPORT| NAME=Me|
|00000690| 6e 75 54 52 20 46 49 4c | 45 3d 54 65 78 74 75 72 |nuTR FIL|E=Textur|
|000006a0| 65 73 5c 4d 65 6e 75 54 | 52 2e 62 6d 70 20 47 52 |es\MenuT|R.bmp GR|
|000006b0| 4f 55 50 3d 22 49 63 6f | 6e 73 22 20 4d 49 50 53 |OUP="Ico|ns" MIPS|
|000006c0| 3d 4f 46 46 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |=OFF..#e|xec TEXT|
|000006d0| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|000006e0| 4d 65 6e 75 4c 20 46 49 | 4c 45 3d 54 65 78 74 75 |MenuL FI|LE=Textu|
|000006f0| 72 65 73 5c 4d 65 6e 75 | 4c 2e 62 6d 70 20 47 52 |res\Menu|L.bmp GR|
|00000700| 4f 55 50 3d 22 49 63 6f | 6e 73 22 20 4d 49 50 53 |OUP="Ico|ns" MIPS|
|00000710| 3d 4f 46 46 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |=OFF..#e|xec TEXT|
|00000720| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|00000730| 4d 65 6e 75 52 20 46 49 | 4c 45 3d 54 65 78 74 75 |MenuR FI|LE=Textu|
|00000740| 72 65 73 5c 4d 65 6e 75 | 52 2e 62 6d 70 20 47 52 |res\Menu|R.bmp GR|
|00000750| 4f 55 50 3d 22 49 63 6f | 6e 73 22 20 4d 49 50 53 |OUP="Ico|ns" MIPS|
|00000760| 3d 4f 46 46 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |=OFF..#e|xec TEXT|
|00000770| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|00000780| 4d 65 6e 75 42 4c 20 46 | 49 4c 45 3d 54 65 78 74 |MenuBL F|ILE=Text|
|00000790| 75 72 65 73 5c 4d 65 6e | 75 42 4c 2e 62 6d 70 20 |ures\Men|uBL.bmp |
|000007a0| 47 52 4f 55 50 3d 22 49 | 63 6f 6e 73 22 20 4d 49 |GROUP="I|cons" MI|
|000007b0| 50 53 3d 4f 46 46 0d 0a | 23 65 78 65 63 20 54 45 |PS=OFF..|#exec TE|
|000007c0| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|000007d0| 45 3d 4d 65 6e 75 42 20 | 46 49 4c 45 3d 54 65 78 |E=MenuB |FILE=Tex|
|000007e0| 74 75 72 65 73 5c 4d 65 | 6e 75 42 2e 62 6d 70 20 |tures\Me|nuB.bmp |
|000007f0| 47 52 4f 55 50 3d 22 49 | 63 6f 6e 73 22 20 4d 49 |GROUP="I|cons" MI|
|00000800| 50 53 3d 4f 46 46 0d 0a | 23 65 78 65 63 20 54 45 |PS=OFF..|#exec TE|
|00000810| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|00000820| 45 3d 4d 65 6e 75 42 52 | 20 46 49 4c 45 3d 54 65 |E=MenuBR| FILE=Te|
|00000830| 78 74 75 72 65 73 5c 4d | 65 6e 75 42 52 2e 62 6d |xtures\M|enuBR.bm|
|00000840| 70 20 47 52 4f 55 50 3d | 22 49 63 6f 6e 73 22 20 |p GROUP=|"Icons" |
|00000850| 4d 49 50 53 3d 4f 46 46 | 0d 0a 23 65 78 65 63 20 |MIPS=OFF|..#exec |
|00000860| 54 45 58 54 55 52 45 20 | 49 4d 50 4f 52 54 20 4e |TEXTURE |IMPORT N|
|00000870| 41 4d 45 3d 4d 65 6e 75 | 48 69 67 68 6c 69 67 68 |AME=Menu|Highligh|
|00000880| 74 20 46 49 4c 45 3d 54 | 65 78 74 75 72 65 73 5c |t FILE=T|extures\|
|00000890| 4d 65 6e 75 48 69 67 68 | 6c 69 67 68 74 2e 62 6d |MenuHigh|light.bm|
|000008a0| 70 20 47 52 4f 55 50 3d | 22 49 63 6f 6e 73 22 20 |p GROUP=|"Icons" |
|000008b0| 4d 49 50 53 3d 4f 46 46 | 0d 0a 0d 0a 76 61 72 28 |MIPS=OFF|....var(|
|000008c0| 29 20 52 65 67 69 6f 6e | 09 53 42 55 70 55 70 3b |) Region|.SBUpUp;|
|000008d0| 0d 0a 76 61 72 28 29 20 | 52 65 67 69 6f 6e 09 53 |..var() |Region.S|
|000008e0| 42 55 70 44 6f 77 6e 3b | 0d 0a 76 61 72 28 29 20 |BUpDown;|..var() |
|000008f0| 52 65 67 69 6f 6e 09 53 | 42 55 70 44 69 73 61 62 |Region.S|BUpDisab|
|00000900| 6c 65 64 3b 0d 0a 0d 0a | 76 61 72 28 29 20 52 65 |led;....|var() Re|
|00000910| 67 69 6f 6e 09 53 42 44 | 6f 77 6e 55 70 3b 0d 0a |gion.SBD|ownUp;..|
|00000920| 76 61 72 28 29 20 52 65 | 67 69 6f 6e 09 53 42 44 |var() Re|gion.SBD|
|00000930| 6f 77 6e 44 6f 77 6e 3b | 0d 0a 76 61 72 28 29 20 |ownDown;|..var() |
|00000940| 52 65 67 69 6f 6e 09 53 | 42 44 6f 77 6e 44 69 73 |Region.S|BDownDis|
|00000950| 61 62 6c 65 64 3b 0d 0a | 0d 0a 76 61 72 28 29 20 |abled;..|..var() |
|00000960| 52 65 67 69 6f 6e 09 53 | 42 4c 65 66 74 55 70 3b |Region.S|BLeftUp;|
|00000970| 0d 0a 76 61 72 28 29 20 | 52 65 67 69 6f 6e 09 53 |..var() |Region.S|
|00000980| 42 4c 65 66 74 44 6f 77 | 6e 3b 0d 0a 76 61 72 28 |BLeftDow|n;..var(|
|00000990| 29 20 52 65 67 69 6f 6e | 09 53 42 4c 65 66 74 44 |) Region|.SBLeftD|
|000009a0| 69 73 61 62 6c 65 64 3b | 0d 0a 0d 0a 76 61 72 28 |isabled;|....var(|
|000009b0| 29 20 52 65 67 69 6f 6e | 09 53 42 52 69 67 68 74 |) Region|.SBRight|
|000009c0| 55 70 3b 0d 0a 76 61 72 | 28 29 20 52 65 67 69 6f |Up;..var|() Regio|
|000009d0| 6e 09 53 42 52 69 67 68 | 74 44 6f 77 6e 3b 0d 0a |n.SBRigh|tDown;..|
|000009e0| 76 61 72 28 29 20 52 65 | 67 69 6f 6e 09 53 42 52 |var() Re|gion.SBR|
|000009f0| 69 67 68 74 44 69 73 61 | 62 6c 65 64 3b 0d 0a 0d |ightDisa|bled;...|
|00000a00| 0a 76 61 72 28 29 20 52 | 65 67 69 6f 6e 09 53 42 |.var() R|egion.SB|
|00000a10| 42 61 63 6b 67 72 6f 75 | 6e 64 3b 0d 0a 0d 0a 76 |Backgrou|nd;....v|
|00000a20| 61 72 28 29 20 52 65 67 | 69 6f 6e 09 46 72 61 6d |ar() Reg|ion.Fram|
|00000a30| 65 53 42 4c 3b 0d 0a 76 | 61 72 28 29 20 52 65 67 |eSBL;..v|ar() Reg|
|00000a40| 69 6f 6e 09 46 72 61 6d | 65 53 42 3b 0d 0a 76 61 |ion.Fram|eSB;..va|
|00000a50| 72 28 29 20 52 65 67 69 | 6f 6e 09 46 72 61 6d 65 |r() Regi|on.Frame|
|00000a60| 53 42 52 3b 0d 0a 0d 0a | 76 61 72 28 29 20 52 65 |SBR;....|var() Re|
|00000a70| 67 69 6f 6e 09 43 6c 6f | 73 65 42 6f 78 55 70 3b |gion.Clo|seBoxUp;|
|00000a80| 0d 0a 76 61 72 28 29 20 | 52 65 67 69 6f 6e 09 43 |..var() |Region.C|
|00000a90| 6c 6f 73 65 42 6f 78 44 | 6f 77 6e 3b 0d 0a 76 61 |loseBoxD|own;..va|
|00000aa0| 72 28 29 20 69 6e 74 09 | 09 43 6c 6f 73 65 42 6f |r() int.|.CloseBo|
|00000ab0| 78 4f 66 66 73 65 74 58 | 3b 0d 0a 76 61 72 28 29 |xOffsetX|;..var()|
|00000ac0| 20 69 6e 74 09 09 43 6c | 6f 73 65 42 6f 78 4f 66 | int..Cl|oseBoxOf|
|00000ad0| 66 73 65 74 59 3b 0d 0a | 0d 0a 0d 0a 63 6f 6e 73 |fsetY;..|....cons|
|00000ae0| 74 20 53 49 5a 45 42 4f | 52 44 45 52 20 3d 20 33 |t SIZEBO|RDER = 3|
|00000af0| 3b 0d 0a 63 6f 6e 73 74 | 20 42 52 53 49 5a 45 42 |;..const| BRSIZEB|
|00000b00| 4f 52 44 45 52 20 3d 20 | 31 35 3b 0d 0a 0d 0a 2f |ORDER = |15;..../|
|00000b10| 2a 20 46 72 61 6d 65 64 | 20 57 69 6e 64 6f 77 20 |* Framed| Window |
|00000b20| 44 72 61 77 69 6e 67 20 | 46 75 6e 63 74 69 6f 6e |Drawing |Function|
|00000b30| 73 20 2a 2f 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 46 |s */..fu|nction F|
|00000b40| 57 5f 44 72 61 77 57 69 | 6e 64 6f 77 46 72 61 6d |W_DrawWi|ndowFram|
|00000b50| 65 28 55 57 69 6e 64 6f | 77 46 72 61 6d 65 64 57 |e(UWindo|wFramedW|
|00000b60| 69 6e 64 6f 77 20 57 2c | 20 43 61 6e 76 61 73 20 |indow W,| Canvas |
|00000b70| 43 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 54 65 |C)..{...|local Te|
|00000b80| 78 74 75 72 65 20 54 3b | 0d 0a 09 6c 6f 63 61 6c |xture T;|...local|
|00000b90| 20 52 65 67 69 6f 6e 20 | 52 2c 20 54 65 6d 70 3b | Region |R, Temp;|
|00000ba0| 0d 0a 0d 0a 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |.....C.D|rawColor|
|00000bb0| 2e 72 20 3d 20 32 35 35 | 3b 0d 0a 09 43 2e 44 72 |.r = 255|;...C.Dr|
|00000bc0| 61 77 43 6f 6c 6f 72 2e | 67 20 3d 20 32 35 35 3b |awColor.|g = 255;|
|00000bd0| 0d 0a 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 2e 62 |...C.Dra|wColor.b|
|00000be0| 20 3d 20 32 35 35 3b 0d | 0a 0d 0a 09 54 20 3d 20 | = 255;.|....T = |
|00000bf0| 57 2e 47 65 74 4c 6f 6f | 6b 41 6e 64 46 65 65 6c |W.GetLoo|kAndFeel|
|00000c00| 54 65 78 74 75 72 65 28 | 29 3b 0d 0a 0d 0a 09 52 |Texture(|);.....R|
|00000c10| 20 3d 20 46 72 61 6d 65 | 54 4c 3b 0d 0a 09 57 2e | = Frame|TL;...W.|
|00000c20| 44 72 61 77 53 74 72 65 | 74 63 68 65 64 54 65 78 |DrawStre|tchedTex|
|00000c30| 74 75 72 65 53 65 67 6d | 65 6e 74 28 20 43 2c 20 |tureSegm|ent( C, |
|00000c40| 30 2c 20 30 2c 20 52 2e | 57 2c 20 52 2e 48 2c 20 |0, 0, R.|W, R.H, |
|00000c50| 52 2e 58 2c 20 52 2e 59 | 2c 20 52 2e 57 2c 20 52 |R.X, R.Y|, R.W, R|
|00000c60| 2e 48 2c 20 54 20 29 3b | 0d 0a 0d 0a 09 52 20 3d |.H, T );|.....R =|
|00000c70| 20 46 72 61 6d 65 54 3b | 0d 0a 09 57 2e 44 72 61 | FrameT;|...W.Dra|
|00000c80| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|00000c90| 65 53 65 67 6d 65 6e 74 | 28 20 43 2c 20 46 72 61 |eSegment|( C, Fra|
|00000ca0| 6d 65 54 4c 2e 57 2c 20 | 30 2c 20 0d 0a 09 09 09 |meTL.W, |0, .....|
|00000cb0| 09 09 09 09 09 09 57 2e | 57 69 6e 57 69 64 74 68 |......W.|WinWidth|
|00000cc0| 20 2d 20 46 72 61 6d 65 | 54 4c 2e 57 0d 0a 09 09 | - Frame|TL.W....|
|00000cd0| 09 09 09 09 09 09 09 2d | 20 46 72 61 6d 65 54 52 |.......-| FrameTR|
|00000ce0| 2e 57 2c 0d 0a 09 09 09 | 09 09 09 09 09 09 52 2e |.W,.....|......R.|
|00000cf0| 48 2c 20 52 2e 58 2c 20 | 52 2e 59 2c 20 52 2e 57 |H, R.X, |R.Y, R.W|
|00000d00| 2c 20 52 2e 48 2c 20 54 | 20 29 3b 0d 0a 0d 0a 09 |, R.H, T| );.....|
|00000d10| 52 20 3d 20 46 72 61 6d | 65 54 52 3b 0d 0a 09 57 |R = Fram|eTR;...W|
|00000d20| 2e 44 72 61 77 53 74 72 | 65 74 63 68 65 64 54 65 |.DrawStr|etchedTe|
|00000d30| 78 74 75 72 65 53 65 67 | 6d 65 6e 74 28 20 43 2c |xtureSeg|ment( C,|
|00000d40| 20 57 2e 57 69 6e 57 69 | 64 74 68 20 2d 20 52 2e | W.WinWi|dth - R.|
|00000d50| 57 2c 20 30 2c 20 52 2e | 57 2c 20 52 2e 48 2c 20 |W, 0, R.|W, R.H, |
|00000d60| 52 2e 58 2c 20 52 2e 59 | 2c 20 52 2e 57 2c 20 52 |R.X, R.Y|, R.W, R|
|00000d70| 2e 48 2c 20 54 20 29 3b | 0d 0a 09 0d 0a 0d 0a 09 |.H, T );|........|
|00000d80| 69 66 28 57 2e 62 53 74 | 61 74 75 73 42 61 72 29 |if(W.bSt|atusBar)|
|00000d90| 0d 0a 09 09 54 65 6d 70 | 20 3d 20 46 72 61 6d 65 |....Temp| = Frame|
|00000da0| 53 42 4c 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 54 |SBL;...e|lse....T|
|00000db0| 65 6d 70 20 3d 20 46 72 | 61 6d 65 42 4c 3b 0d 0a |emp = Fr|ameBL;..|
|00000dc0| 09 0d 0a 09 52 20 3d 20 | 46 72 61 6d 65 4c 3b 0d |....R = |FrameL;.|
|00000dd0| 0a 09 57 2e 44 72 61 77 | 53 74 72 65 74 63 68 65 |..W.Draw|Stretche|
|00000de0| 64 54 65 78 74 75 72 65 | 53 65 67 6d 65 6e 74 28 |dTexture|Segment(|
|00000df0| 20 43 2c 20 30 2c 20 46 | 72 61 6d 65 54 4c 2e 48 | C, 0, F|rameTL.H|
|00000e00| 2c 0d 0a 09 09 09 09 09 | 09 09 09 09 52 2e 57 2c |,.......|....R.W,|
|00000e10| 20 20 0d 0a 09 09 09 09 | 09 09 09 09 09 57 2e 57 | ......|.....W.W|
|00000e20| 69 6e 48 65 69 67 68 74 | 20 2d 20 46 72 61 6d 65 |inHeight| - Frame|
|00000e30| 54 4c 2e 48 0d 0a 09 09 | 09 09 09 09 09 09 09 2d |TL.H....|.......-|
|00000e40| 20 54 65 6d 70 2e 48 2c | 0d 0a 09 09 09 09 09 09 | Temp.H,|........|
|00000e50| 09 09 09 52 2e 58 2c 20 | 52 2e 59 2c 20 52 2e 57 |...R.X, |R.Y, R.W|
|00000e60| 2c 20 52 2e 48 2c 20 54 | 20 29 3b 0d 0a 0d 0a 09 |, R.H, T| );.....|
|00000e70| 52 20 3d 20 46 72 61 6d | 65 52 3b 0d 0a 09 57 2e |R = Fram|eR;...W.|
|00000e80| 44 72 61 77 53 74 72 65 | 74 63 68 65 64 54 65 78 |DrawStre|tchedTex|
|00000e90| 74 75 72 65 53 65 67 6d | 65 6e 74 28 20 43 2c 20 |tureSegm|ent( C, |
|00000ea0| 57 2e 57 69 6e 57 69 64 | 74 68 20 2d 20 52 2e 57 |W.WinWid|th - R.W|
|00000eb0| 2c 20 46 72 61 6d 65 54 | 4c 2e 48 2c 0d 0a 09 09 |, FrameT|L.H,....|
|00000ec0| 09 09 09 09 09 09 09 52 | 2e 57 2c 20 20 0d 0a 09 |.......R|.W, ...|
|00000ed0| 09 09 09 09 09 09 09 09 | 57 2e 57 69 6e 48 65 69 |........|W.WinHei|
|00000ee0| 67 68 74 20 2d 20 46 72 | 61 6d 65 54 4c 2e 48 0d |ght - Fr|ameTL.H.|
|00000ef0| 0a 09 09 09 09 09 09 09 | 09 09 2d 20 54 65 6d 70 |........|..- Temp|
|00000f00| 2e 48 2c 0d 0a 09 09 09 | 09 09 09 09 09 09 52 2e |.H,.....|......R.|
|00000f10| 58 2c 20 52 2e 59 2c 20 | 52 2e 57 2c 20 52 2e 48 |X, R.Y, |R.W, R.H|
|00000f20| 2c 20 54 20 29 3b 0d 0a | 0d 0a 09 69 66 28 57 2e |, T );..|...if(W.|
|00000f30| 62 53 74 61 74 75 73 42 | 61 72 29 0d 0a 09 09 52 |bStatusB|ar)....R|
|00000f40| 20 3d 20 46 72 61 6d 65 | 53 42 4c 3b 0d 0a 09 65 | = Frame|SBL;...e|
|00000f50| 6c 73 65 0d 0a 09 09 52 | 20 3d 20 46 72 61 6d 65 |lse....R| = Frame|
|00000f60| 42 4c 3b 0d 0a 09 57 2e | 44 72 61 77 53 74 72 65 |BL;...W.|DrawStre|
|00000f70| 74 63 68 65 64 54 65 78 | 74 75 72 65 53 65 67 6d |tchedTex|tureSegm|
|00000f80| 65 6e 74 28 20 43 2c 20 | 30 2c 20 57 2e 57 69 6e |ent( C, |0, W.Win|
|00000f90| 48 65 69 67 68 74 20 2d | 20 52 2e 48 2c 20 52 2e |Height -| R.H, R.|
|00000fa0| 57 2c 20 52 2e 48 2c 20 | 52 2e 58 2c 20 52 2e 59 |W, R.H, |R.X, R.Y|
|00000fb0| 2c 20 52 2e 57 2c 20 52 | 2e 48 2c 20 54 20 29 3b |, R.W, R|.H, T );|
|00000fc0| 0d 0a 0d 0a 09 69 66 28 | 57 2e 62 53 74 61 74 75 |.....if(|W.bStatu|
|00000fd0| 73 42 61 72 29 0d 0a 09 | 7b 0d 0a 09 09 52 20 3d |sBar)...|{....R =|
|00000fe0| 20 46 72 61 6d 65 53 42 | 3b 0d 0a 09 09 57 2e 44 | FrameSB|;....W.D|
|00000ff0| 72 61 77 53 74 72 65 74 | 63 68 65 64 54 65 78 74 |rawStret|chedText|
|00001000| 75 72 65 53 65 67 6d 65 | 6e 74 28 20 43 2c 20 46 |ureSegme|nt( C, F|
|00001010| 72 61 6d 65 42 4c 2e 57 | 2c 20 57 2e 57 69 6e 48 |rameBL.W|, W.WinH|
|00001020| 65 69 67 68 74 20 2d 20 | 52 2e 48 2c 20 0d 0a 09 |eight - |R.H, ...|
|00001030| 09 09 09 09 09 09 09 09 | 09 57 2e 57 69 6e 57 69 |........|.W.WinWi|
|00001040| 64 74 68 20 2d 20 46 72 | 61 6d 65 53 42 4c 2e 57 |dth - Fr|ameSBL.W|
|00001050| 0d 0a 09 09 09 09 09 09 | 09 09 09 09 2d 20 46 72 |........|....- Fr|
|00001060| 61 6d 65 53 42 52 2e 57 | 2c 0d 0a 09 09 09 09 09 |ameSBR.W|,.......|
|00001070| 09 09 09 09 09 52 2e 48 | 2c 20 52 2e 58 2c 20 52 |.....R.H|, R.X, R|
|00001080| 2e 59 2c 20 52 2e 57 2c | 20 52 2e 48 2c 20 54 20 |.Y, R.W,| R.H, T |
|00001090| 29 3b 0d 0a 09 7d 0d 0a | 09 65 6c 73 65 0d 0a 09 |);...}..|.else...|
|000010a0| 7b 0d 0a 09 09 52 20 3d | 20 46 72 61 6d 65 42 3b |{....R =| FrameB;|
|000010b0| 0d 0a 09 09 57 2e 44 72 | 61 77 53 74 72 65 74 63 |....W.Dr|awStretc|
|000010c0| 68 65 64 54 65 78 74 75 | 72 65 53 65 67 6d 65 6e |hedTextu|reSegmen|
|000010d0| 74 28 20 43 2c 20 46 72 | 61 6d 65 42 4c 2e 57 2c |t( C, Fr|ameBL.W,|
|000010e0| 20 57 2e 57 69 6e 48 65 | 69 67 68 74 20 2d 20 52 | W.WinHe|ight - R|
|000010f0| 2e 48 2c 20 0d 0a 09 09 | 09 09 09 09 09 09 09 09 |.H, ....|........|
|00001100| 57 2e 57 69 6e 57 69 64 | 74 68 20 2d 20 46 72 61 |W.WinWid|th - Fra|
|00001110| 6d 65 42 4c 2e 57 0d 0a | 09 09 09 09 09 09 09 09 |meBL.W..|........|
|00001120| 09 09 2d 20 46 72 61 6d | 65 42 52 2e 57 2c 0d 0a |..- Fram|eBR.W,..|
|00001130| 09 09 09 09 09 09 09 09 | 09 09 52 2e 48 2c 20 52 |........|..R.H, R|
|00001140| 2e 58 2c 20 52 2e 59 2c | 20 52 2e 57 2c 20 52 2e |.X, R.Y,| R.W, R.|
|00001150| 48 2c 20 54 20 29 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |H, T );.|..}.....|
|00001160| 69 66 28 57 2e 62 53 74 | 61 74 75 73 42 61 72 29 |if(W.bSt|atusBar)|
|00001170| 0d 0a 09 09 52 20 3d 20 | 46 72 61 6d 65 53 42 52 |....R = |FrameSBR|
|00001180| 3b 0d 0a 09 65 6c 73 65 | 0d 0a 09 09 52 20 3d 20 |;...else|....R = |
|00001190| 46 72 61 6d 65 42 52 3b | 0d 0a 09 57 2e 44 72 61 |FrameBR;|...W.Dra|
|000011a0| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|000011b0| 65 53 65 67 6d 65 6e 74 | 28 20 43 2c 20 57 2e 57 |eSegment|( C, W.W|
|000011c0| 69 6e 57 69 64 74 68 20 | 2d 20 52 2e 57 2c 20 57 |inWidth |- R.W, W|
|000011d0| 2e 57 69 6e 48 65 69 67 | 68 74 20 2d 20 52 2e 48 |.WinHeig|ht - R.H|
|000011e0| 2c 20 52 2e 57 2c 20 52 | 2e 48 2c 20 52 2e 58 2c |, R.W, R|.H, R.X,|
|000011f0| 20 52 2e 59 2c 20 0d 0a | 09 09 09 09 09 09 09 09 | R.Y, ..|........|
|00001200| 09 52 2e 57 2c 20 52 2e | 48 2c 20 54 20 29 3b 0d |.R.W, R.|H, T );.|
|00001210| 0a 0d 0a 0d 0a 09 43 2e | 46 6f 6e 74 20 3d 20 57 |......C.|Font = W|
|00001220| 2e 52 6f 6f 74 2e 46 6f | 6e 74 73 5b 57 2e 46 5f |.Root.Fo|nts[W.F_|
|00001230| 4e 6f 72 6d 61 6c 5d 3b | 0d 0a 09 69 66 28 57 2e |Normal];|...if(W.|
|00001240| 50 61 72 65 6e 74 57 69 | 6e 64 6f 77 2e 41 63 74 |ParentWi|ndow.Act|
|00001250| 69 76 65 57 69 6e 64 6f | 77 20 3d 3d 20 57 29 0d |iveWindo|w == W).|
|00001260| 0a 09 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 20 3d |...C.Dra|wColor =|
|00001270| 20 46 72 61 6d 65 41 63 | 74 69 76 65 54 69 74 6c | FrameAc|tiveTitl|
|00001280| 65 43 6f 6c 6f 72 3b 0d | 0a 09 65 6c 73 65 0d 0a |eColor;.|..else..|
|00001290| 09 09 43 2e 44 72 61 77 | 43 6f 6c 6f 72 20 3d 20 |..C.Draw|Color = |
|000012a0| 46 72 61 6d 65 49 6e 61 | 63 74 69 76 65 54 69 74 |FrameIna|ctiveTit|
|000012b0| 6c 65 43 6f 6c 6f 72 3b | 0d 0a 0d 0a 0d 0a 09 57 |leColor;|.......W|
|000012c0| 2e 43 6c 69 70 54 65 78 | 74 57 69 64 74 68 28 43 |.ClipTex|tWidth(C|
|000012d0| 2c 20 46 72 61 6d 65 54 | 69 74 6c 65 58 2c 20 46 |, FrameT|itleX, F|
|000012e0| 72 61 6d 65 54 69 74 6c | 65 59 2c 20 0d 0a 09 09 |rameTitl|eY, ....|
|000012f0| 09 09 09 57 2e 57 69 6e | 64 6f 77 54 69 74 6c 65 |...W.Win|dowTitle|
|00001300| 2c 20 57 2e 57 69 6e 57 | 69 64 74 68 20 2d 20 32 |, W.WinW|idth - 2|
|00001310| 32 29 3b 0d 0a 0d 0a 09 | 69 66 28 57 2e 62 53 74 |2);.....|if(W.bSt|
|00001320| 61 74 75 73 42 61 72 29 | 20 0d 0a 09 7b 0d 0a 09 |atusBar)| ...{...|
|00001330| 09 43 2e 44 72 61 77 43 | 6f 6c 6f 72 2e 72 20 3d |.C.DrawC|olor.r =|
|00001340| 20 30 3b 0d 0a 09 09 43 | 2e 44 72 61 77 43 6f 6c | 0;....C|.DrawCol|
|00001350| 6f 72 2e 67 20 3d 20 30 | 3b 0d 0a 09 09 43 2e 44 |or.g = 0|;....C.D|
|00001360| 72 61 77 43 6f 6c 6f 72 | 2e 62 20 3d 20 30 3b 0d |rawColor|.b = 0;.|
|00001370| 0a 0d 0a 09 09 57 2e 43 | 6c 69 70 54 65 78 74 57 |.....W.C|lipTextW|
|00001380| 69 64 74 68 28 43 2c 20 | 36 2c 20 57 2e 57 69 6e |idth(C, |6, W.Win|
|00001390| 48 65 69 67 68 74 20 2d | 20 31 33 2c 20 57 2e 53 |Height -| 13, W.S|
|000013a0| 74 61 74 75 73 42 61 72 | 54 65 78 74 2c 20 57 2e |tatusBar|Text, W.|
|000013b0| 57 69 6e 57 69 64 74 68 | 20 2d 20 32 32 29 3b 0d |WinWidth| - 22);.|
|000013c0| 0a 0d 0a 09 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |.....C.D|rawColor|
|000013d0| 2e 72 20 3d 20 32 35 35 | 3b 0d 0a 09 09 43 2e 44 |.r = 255|;....C.D|
|000013e0| 72 61 77 43 6f 6c 6f 72 | 2e 67 20 3d 20 32 35 35 |rawColor|.g = 255|
|000013f0| 3b 0d 0a 09 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |;....C.D|rawColor|
|00001400| 2e 62 20 3d 20 32 35 35 | 3b 0d 0a 09 7d 0d 0a 7d |.b = 255|;...}..}|
|00001410| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 46 57 5f |....func|tion FW_|
|00001420| 53 65 74 75 70 46 72 61 | 6d 65 42 75 74 74 6f 6e |SetupFra|meButton|
|00001430| 73 28 55 57 69 6e 64 6f | 77 46 72 61 6d 65 64 57 |s(UWindo|wFramedW|
|00001440| 69 6e 64 6f 77 20 57 2c | 20 43 61 6e 76 61 73 20 |indow W,| Canvas |
|00001450| 43 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 54 65 |C)..{...|local Te|
|00001460| 78 74 75 72 65 20 54 3b | 0d 0a 0d 0a 09 54 20 3d |xture T;|.....T =|
|00001470| 20 57 2e 47 65 74 4c 6f | 6f 6b 41 6e 64 46 65 65 | W.GetLo|okAndFee|
|00001480| 6c 54 65 78 74 75 72 65 | 28 29 3b 0d 0a 0d 0a 09 |lTexture|();.....|
|00001490| 57 2e 43 6c 6f 73 65 42 | 6f 78 2e 57 69 6e 4c 65 |W.CloseB|ox.WinLe|
|000014a0| 66 74 20 3d 20 57 2e 57 | 69 6e 57 69 64 74 68 20 |ft = W.W|inWidth |
|000014b0| 2d 20 43 6c 6f 73 65 42 | 6f 78 4f 66 66 73 65 74 |- CloseB|oxOffset|
|000014c0| 58 20 2d 20 43 6c 6f 73 | 65 42 6f 78 55 70 2e 57 |X - Clos|eBoxUp.W|
|000014d0| 3b 0d 0a 09 57 2e 43 6c | 6f 73 65 42 6f 78 2e 57 |;...W.Cl|oseBox.W|
|000014e0| 69 6e 54 6f 70 20 3d 20 | 43 6c 6f 73 65 42 6f 78 |inTop = |CloseBox|
|000014f0| 4f 66 66 73 65 74 59 3b | 0d 0a 0d 0a 09 57 2e 43 |OffsetY;|.....W.C|
|00001500| 6c 6f 73 65 42 6f 78 2e | 53 65 74 53 69 7a 65 28 |loseBox.|SetSize(|
|00001510| 43 6c 6f 73 65 42 6f 78 | 55 70 2e 57 2c 20 43 6c |CloseBox|Up.W, Cl|
|00001520| 6f 73 65 42 6f 78 55 70 | 2e 48 29 3b 0d 0a 09 57 |oseBoxUp|.H);...W|
|00001530| 2e 43 6c 6f 73 65 42 6f | 78 2e 62 55 73 65 52 65 |.CloseBo|x.bUseRe|
|00001540| 67 69 6f 6e 20 3d 20 54 | 72 75 65 3b 0d 0a 0d 0a |gion = T|rue;....|
|00001550| 09 57 2e 43 6c 6f 73 65 | 42 6f 78 2e 55 70 54 65 |.W.Close|Box.UpTe|
|00001560| 78 74 75 72 65 20 3d 20 | 54 3b 0d 0a 09 57 2e 43 |xture = |T;...W.C|
|00001570| 6c 6f 73 65 42 6f 78 2e | 44 6f 77 6e 54 65 78 74 |loseBox.|DownText|
|00001580| 75 72 65 20 3d 20 54 3b | 0d 0a 09 57 2e 43 6c 6f |ure = T;|...W.Clo|
|00001590| 73 65 42 6f 78 2e 4f 76 | 65 72 54 65 78 74 75 72 |seBox.Ov|erTextur|
|000015a0| 65 20 3d 20 54 3b 0d 0a | 09 57 2e 43 6c 6f 73 65 |e = T;..|.W.Close|
|000015b0| 42 6f 78 2e 44 69 73 61 | 62 6c 65 64 54 65 78 74 |Box.Disa|bledText|
|000015c0| 75 72 65 20 3d 20 54 3b | 0d 0a 0d 0a 09 57 2e 43 |ure = T;|.....W.C|
|000015d0| 6c 6f 73 65 42 6f 78 2e | 55 70 52 65 67 69 6f 6e |loseBox.|UpRegion|
|000015e0| 20 3d 20 43 6c 6f 73 65 | 42 6f 78 55 70 3b 0d 0a | = Close|BoxUp;..|
|000015f0| 09 57 2e 43 6c 6f 73 65 | 42 6f 78 2e 44 6f 77 6e |.W.Close|Box.Down|
|00001600| 52 65 67 69 6f 6e 20 3d | 20 43 6c 6f 73 65 42 6f |Region =| CloseBo|
|00001610| 78 44 6f 77 6e 3b 0d 0a | 09 57 2e 43 6c 6f 73 65 |xDown;..|.W.Close|
|00001620| 42 6f 78 2e 4f 76 65 72 | 52 65 67 69 6f 6e 20 3d |Box.Over|Region =|
|00001630| 20 43 6c 6f 73 65 42 6f | 78 55 70 3b 0d 0a 09 57 | CloseBo|xUp;...W|
|00001640| 2e 43 6c 6f 73 65 42 6f | 78 2e 44 69 73 61 62 6c |.CloseBo|x.Disabl|
|00001650| 65 64 52 65 67 69 6f 6e | 20 3d 20 43 6c 6f 73 65 |edRegion| = Close|
|00001660| 42 6f 78 55 70 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |BoxUp;..|}....fun|
|00001670| 63 74 69 6f 6e 20 52 65 | 67 69 6f 6e 20 46 57 5f |ction Re|gion FW_|
|00001680| 47 65 74 43 6c 69 65 6e | 74 41 72 65 61 28 55 57 |GetClien|tArea(UW|
|00001690| 69 6e 64 6f 77 46 72 61 | 6d 65 64 57 69 6e 64 6f |indowFra|medWindo|
|000016a0| 77 20 57 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |w W)..{.|..local |
|000016b0| 52 65 67 69 6f 6e 20 52 | 3b 0d 0a 0d 0a 09 52 2e |Region R|;.....R.|
|000016c0| 58 20 3d 20 46 72 61 6d | 65 4c 2e 57 3b 0d 0a 09 |X = Fram|eL.W;...|
|000016d0| 52 2e 59 09 3d 20 46 72 | 61 6d 65 54 2e 48 3b 0d |R.Y.= Fr|ameT.H;.|
|000016e0| 0a 09 52 2e 57 20 3d 20 | 57 2e 57 69 6e 57 69 64 |..R.W = |W.WinWid|
|000016f0| 74 68 20 2d 20 28 46 72 | 61 6d 65 4c 2e 57 20 2b |th - (Fr|ameL.W +|
|00001700| 20 46 72 61 6d 65 52 2e | 57 29 3b 0d 0a 09 69 66 | FrameR.|W);...if|
|00001710| 28 57 2e 62 53 74 61 74 | 75 73 42 61 72 29 20 0d |(W.bStat|usBar) .|
|00001720| 0a 09 09 52 2e 48 20 3d | 20 57 2e 57 69 6e 48 65 |...R.H =| W.WinHe|
|00001730| 69 67 68 74 20 2d 20 28 | 46 72 61 6d 65 54 2e 48 |ight - (|FrameT.H|
|00001740| 20 2b 20 46 72 61 6d 65 | 53 42 2e 48 29 3b 0d 0a | + Frame|SB.H);..|
|00001750| 09 65 6c 73 65 0d 0a 09 | 09 52 2e 48 20 3d 20 57 |.else...|.R.H = W|
|00001760| 2e 57 69 6e 48 65 69 67 | 68 74 20 2d 20 28 46 72 |.WinHeig|ht - (Fr|
|00001770| 61 6d 65 54 2e 48 20 2b | 20 46 72 61 6d 65 42 2e |ameT.H +| FrameB.|
|00001780| 48 29 3b 0d 0a 0d 0a 09 | 72 65 74 75 72 6e 20 52 |H);.....|return R|
|00001790| 3b 0d 0a 7d 0d 0a 0d 0a | 0d 0a 66 75 6e 63 74 69 |;..}....|..functi|
|000017a0| 6f 6e 20 46 72 61 6d 65 | 48 69 74 54 65 73 74 20 |on Frame|HitTest |
|000017b0| 46 57 5f 48 69 74 54 65 | 73 74 28 55 57 69 6e 64 |FW_HitTe|st(UWind|
|000017c0| 6f 77 46 72 61 6d 65 64 | 57 69 6e 64 6f 77 20 57 |owFramed|Window W|
|000017d0| 2c 20 66 6c 6f 61 74 20 | 58 2c 20 66 6c 6f 61 74 |, float |X, float|
|000017e0| 20 59 29 0d 0a 7b 0d 0a | 09 69 66 28 28 58 20 3e | Y)..{..|.if((X >|
|000017f0| 3d 20 33 29 20 26 26 20 | 28 58 20 3c 3d 20 57 2e |= 3) && |(X <= W.|
|00001800| 57 69 6e 57 69 64 74 68 | 2d 33 29 20 26 26 20 28 |WinWidth|-3) && (|
|00001810| 59 20 3e 3d 20 33 29 20 | 26 26 20 28 59 20 3c 3d |Y >= 3) |&& (Y <=|
|00001820| 20 31 34 29 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 | 14))...|.return |
|00001830| 48 54 5f 54 69 74 6c 65 | 42 61 72 3b 0d 0a 09 69 |HT_Title|Bar;...i|
|00001840| 66 28 28 58 20 3c 20 42 | 52 53 49 5a 45 42 4f 52 |f((X < B|RSIZEBOR|
|00001850| 44 45 52 20 26 26 20 59 | 20 3c 20 53 49 5a 45 42 |DER && Y| < SIZEB|
|00001860| 4f 52 44 45 52 29 20 7c | 7c 20 28 58 20 3c 20 53 |ORDER) ||| (X < S|
|00001870| 49 5a 45 42 4f 52 44 45 | 52 20 26 26 20 59 20 3c |IZEBORDE|R && Y <|
|00001880| 20 42 52 53 49 5a 45 42 | 4f 52 44 45 52 29 29 20 | BRSIZEB|ORDER)) |
|00001890| 0d 0a 09 09 72 65 74 75 | 72 6e 20 48 54 5f 4e 57 |....retu|rn HT_NW|
|000018a0| 3b 0d 0a 09 69 66 28 28 | 58 20 3e 20 57 2e 57 69 |;...if((|X > W.Wi|
|000018b0| 6e 57 69 64 74 68 20 2d | 20 53 49 5a 45 42 4f 52 |nWidth -| SIZEBOR|
|000018c0| 44 45 52 20 26 26 20 59 | 20 3c 20 42 52 53 49 5a |DER && Y| < BRSIZ|
|000018d0| 45 42 4f 52 44 45 52 29 | 20 7c 7c 20 28 58 20 3e |EBORDER)| || (X >|
|000018e0| 20 57 2e 57 69 6e 57 69 | 64 74 68 20 2d 20 42 52 | W.WinWi|dth - BR|
|000018f0| 53 49 5a 45 42 4f 52 44 | 45 52 20 26 26 20 59 20 |SIZEBORD|ER && Y |
|00001900| 3c 20 53 49 5a 45 42 4f | 52 44 45 52 29 29 0d 0a |< SIZEBO|RDER))..|
|00001910| 09 09 72 65 74 75 72 6e | 20 48 54 5f 4e 45 3b 0d |..return| HT_NE;.|
|00001920| 0a 09 69 66 28 28 58 20 | 3c 20 42 52 53 49 5a 45 |..if((X |< BRSIZE|
|00001930| 42 4f 52 44 45 52 20 26 | 26 20 59 20 3e 20 57 2e |BORDER &|& Y > W.|
|00001940| 57 69 6e 48 65 69 67 68 | 74 20 2d 20 53 49 5a 45 |WinHeigh|t - SIZE|
|00001950| 42 4f 52 44 45 52 29 7c | 7c 20 28 58 20 3c 20 53 |BORDER)||| (X < S|
|00001960| 49 5a 45 42 4f 52 44 45 | 52 20 26 26 20 59 20 3e |IZEBORDE|R && Y >|
|00001970| 20 57 2e 57 69 6e 48 65 | 69 67 68 74 20 2d 20 42 | W.WinHe|ight - B|
|00001980| 52 53 49 5a 45 42 4f 52 | 44 45 52 29 29 20 0d 0a |RSIZEBOR|DER)) ..|
|00001990| 09 09 72 65 74 75 72 6e | 20 48 54 5f 53 57 3b 0d |..return| HT_SW;.|
|000019a0| 0a 09 69 66 28 28 58 20 | 3e 20 57 2e 57 69 6e 57 |..if((X |> W.WinW|
|000019b0| 69 64 74 68 20 2d 20 42 | 52 53 49 5a 45 42 4f 52 |idth - B|RSIZEBOR|
|000019c0| 44 45 52 29 20 26 26 20 | 28 59 20 3e 20 57 2e 57 |DER) && |(Y > W.W|
|000019d0| 69 6e 48 65 69 67 68 74 | 20 2d 20 42 52 53 49 5a |inHeight| - BRSIZ|
|000019e0| 45 42 4f 52 44 45 52 29 | 29 0d 0a 09 09 72 65 74 |EBORDER)|)....ret|
|000019f0| 75 72 6e 20 48 54 5f 53 | 45 3b 0d 0a 09 69 66 28 |urn HT_S|E;...if(|
|00001a00| 59 20 3c 20 53 49 5a 45 | 42 4f 52 44 45 52 29 0d |Y < SIZE|BORDER).|
|00001a10| 0a 09 09 72 65 74 75 72 | 6e 20 48 54 5f 4e 3b 0d |...retur|n HT_N;.|
|00001a20| 0a 09 69 66 28 59 20 3e | 20 57 2e 57 69 6e 48 65 |..if(Y >| W.WinHe|
|00001a30| 69 67 68 74 20 2d 20 53 | 49 5a 45 42 4f 52 44 45 |ight - S|IZEBORDE|
|00001a40| 52 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 48 54 5f |R)....re|turn HT_|
|00001a50| 53 3b 0d 0a 09 69 66 28 | 58 20 3c 20 53 49 5a 45 |S;...if(|X < SIZE|
|00001a60| 42 4f 52 44 45 52 29 0d | 0a 09 09 72 65 74 75 72 |BORDER).|...retur|
|00001a70| 6e 20 48 54 5f 57 3b 0d | 0a 09 69 66 28 58 20 3e |n HT_W;.|..if(X >|
|00001a80| 20 57 2e 57 69 6e 57 69 | 64 74 68 20 2d 20 53 49 | W.WinWi|dth - SI|
|00001a90| 5a 45 42 4f 52 44 45 52 | 29 09 0d 0a 09 09 72 65 |ZEBORDER|).....re|
|00001aa0| 74 75 72 6e 20 48 54 5f | 45 3b 0d 0a 0d 0a 09 72 |turn HT_|E;.....r|
|00001ab0| 65 74 75 72 6e 20 48 54 | 5f 4e 6f 6e 65 3b 09 0d |eturn HT|_None;..|
|00001ac0| 0a 7d 0d 0a 0d 0a 2f 2a | 20 43 6c 69 65 6e 74 20 |.}..../*| Client |
|00001ad0| 41 72 65 61 20 44 72 61 | 77 69 6e 67 20 46 75 6e |Area Dra|wing Fun|
|00001ae0| 63 74 69 6f 6e 73 20 2a | 2f 0d 0a 66 75 6e 63 74 |ctions *|/..funct|
|00001af0| 69 6f 6e 20 44 72 61 77 | 43 6c 69 65 6e 74 41 72 |ion Draw|ClientAr|
|00001b00| 65 61 28 55 57 69 6e 64 | 6f 77 43 6c 69 65 6e 74 |ea(UWind|owClient|
|00001b10| 57 69 6e 64 6f 77 20 57 | 2c 20 43 61 6e 76 61 73 |Window W|, Canvas|
|00001b20| 20 43 29 0d 0a 7b 0d 0a | 09 57 2e 44 72 61 77 53 | C)..{..|.W.DrawS|
|00001b30| 74 72 65 74 63 68 65 64 | 54 65 78 74 75 72 65 28 |tretched|Texture(|
|00001b40| 43 2c 20 30 2c 20 30 2c | 20 57 2e 57 69 6e 57 69 |C, 0, 0,| W.WinWi|
|00001b50| 64 74 68 2c 20 57 2e 57 | 69 6e 48 65 69 67 68 74 |dth, W.W|inHeight|
|00001b60| 2c 20 54 65 78 74 75 72 | 65 27 42 6c 61 63 6b 54 |, Textur|e'BlackT|
|00001b70| 65 78 74 75 72 65 27 29 | 3b 0d 0a 7d 0d 0a 0d 0a |exture')|;..}....|
|00001b80| 0d 0a 2f 2a 20 43 6f 6d | 62 6f 20 44 72 61 77 69 |../* Com|bo Drawi|
|00001b90| 6e 67 20 46 75 6e 63 74 | 69 6f 6e 73 20 2a 2f 0d |ng Funct|ions */.|
|00001ba0| 0a 66 75 6e 63 74 69 6f | 6e 20 43 6f 6d 62 6f 5f |.functio|n Combo_|
|00001bb0| 53 65 74 75 70 53 69 7a | 65 73 28 55 57 69 6e 64 |SetupSiz|es(UWind|
|00001bc0| 6f 77 43 6f 6d 62 6f 43 | 6f 6e 74 72 6f 6c 20 57 |owComboC|ontrol W|
|00001bd0| 2c 20 43 61 6e 76 61 73 | 20 43 29 0d 0a 7b 0d 0a |, Canvas| C)..{..|
|00001be0| 09 6c 6f 63 61 6c 20 66 | 6c 6f 61 74 20 54 57 2c |.local f|loat TW,|
|00001bf0| 20 54 48 3b 0d 0a 0d 0a | 09 43 2e 46 6f 6e 74 20 | TH;....|.C.Font |
|00001c00| 3d 20 57 2e 52 6f 6f 74 | 2e 46 6f 6e 74 73 5b 57 |= W.Root|.Fonts[W|
|00001c10| 2e 46 6f 6e 74 5d 3b 0d | 0a 09 57 2e 54 65 78 74 |.Font];.|..W.Text|
|00001c20| 53 69 7a 65 28 43 2c 20 | 57 2e 54 65 78 74 2c 20 |Size(C, |W.Text, |
|00001c30| 54 57 2c 20 54 48 29 3b | 0d 0a 09 0d 0a 09 57 2e |TW, TH);|......W.|
|00001c40| 57 69 6e 48 65 69 67 68 | 74 20 3d 20 31 32 20 2b |WinHeigh|t = 12 +|
|00001c50| 20 4d 69 73 63 42 65 76 | 65 6c 54 5b 32 5d 2e 48 | MiscBev|elT[2].H|
|00001c60| 20 2b 20 4d 69 73 63 42 | 65 76 65 6c 42 5b 32 5d | + MiscB|evelB[2]|
|00001c70| 2e 48 3b 0d 0a 09 0d 0a | 09 73 77 69 74 63 68 28 |.H;.....|.switch(|
|00001c80| 57 2e 41 6c 69 67 6e 29 | 0d 0a 09 7b 0d 0a 09 63 |W.Align)|...{...c|
|00001c90| 61 73 65 20 54 41 5f 4c | 65 66 74 3a 0d 0a 09 09 |ase TA_L|eft:....|
|00001ca0| 57 2e 45 64 69 74 41 72 | 65 61 44 72 61 77 58 20 |W.EditAr|eaDrawX |
|00001cb0| 3d 20 57 2e 57 69 6e 57 | 69 64 74 68 20 2d 20 57 |= W.WinW|idth - W|
|00001cc0| 2e 45 64 69 74 42 6f 78 | 57 69 64 74 68 3b 0d 0a |.EditBox|Width;..|
|00001cd0| 09 09 57 2e 54 65 78 74 | 58 20 3d 20 30 3b 0d 0a |..W.Text|X = 0;..|
|00001ce0| 09 09 62 72 65 61 6b 3b | 0d 0a 09 63 61 73 65 20 |..break;|...case |
|00001cf0| 54 41 5f 52 69 67 68 74 | 3a 0d 0a 09 09 57 2e 45 |TA_Right|:....W.E|
|00001d00| 64 69 74 41 72 65 61 44 | 72 61 77 58 20 3d 20 30 |ditAreaD|rawX = 0|
|00001d10| 3b 09 0d 0a 09 09 57 2e | 54 65 78 74 58 20 3d 20 |;.....W.|TextX = |
|00001d20| 57 2e 57 69 6e 57 69 64 | 74 68 20 2d 20 54 57 3b |W.WinWid|th - TW;|
|00001d30| 0d 0a 09 09 62 72 65 61 | 6b 3b 0d 0a 09 63 61 73 |....brea|k;...cas|
|00001d40| 65 20 54 41 5f 43 65 6e | 74 65 72 3a 0d 0a 09 09 |e TA_Cen|ter:....|
|00001d50| 57 2e 45 64 69 74 41 72 | 65 61 44 72 61 77 58 20 |W.EditAr|eaDrawX |
|00001d60| 3d 20 28 57 2e 57 69 6e | 57 69 64 74 68 20 2d 20 |= (W.Win|Width - |
|00001d70| 57 2e 45 64 69 74 42 6f | 78 57 69 64 74 68 29 20 |W.EditBo|xWidth) |
|00001d80| 2f 20 32 3b 0d 0a 09 09 | 57 2e 54 65 78 74 58 20 |/ 2;....|W.TextX |
|00001d90| 3d 20 28 57 2e 57 69 6e | 57 69 64 74 68 20 2d 20 |= (W.Win|Width - |
|00001da0| 54 57 29 20 2f 20 32 3b | 0d 0a 09 09 62 72 65 61 |TW) / 2;|....brea|
|00001db0| 6b 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 57 2e 45 64 69 |k;...}..|...W.Edi|
|00001dc0| 74 41 72 65 61 44 72 61 | 77 59 20 3d 20 28 57 2e |tAreaDra|wY = (W.|
|00001dd0| 57 69 6e 48 65 69 67 68 | 74 20 2d 20 32 29 20 2f |WinHeigh|t - 2) /|
|00001de0| 20 32 3b 0d 0a 09 57 2e | 54 65 78 74 59 20 3d 20 | 2;...W.|TextY = |
|00001df0| 28 57 2e 57 69 6e 48 65 | 69 67 68 74 20 2d 20 54 |(W.WinHe|ight - T|
|00001e00| 48 29 20 2f 20 32 3b 0d | 0a 0d 0a 09 57 2e 45 64 |H) / 2;.|....W.Ed|
|00001e10| 69 74 42 6f 78 2e 57 69 | 6e 4c 65 66 74 20 3d 20 |itBox.Wi|nLeft = |
|00001e20| 57 2e 45 64 69 74 41 72 | 65 61 44 72 61 77 58 20 |W.EditAr|eaDrawX |
|00001e30| 2b 20 4d 69 73 63 42 65 | 76 65 6c 4c 5b 32 5d 2e |+ MiscBe|velL[2].|
|00001e40| 57 3b 0d 0a 09 57 2e 45 | 64 69 74 42 6f 78 2e 57 |W;...W.E|ditBox.W|
|00001e50| 69 6e 54 6f 70 20 3d 20 | 4d 69 73 63 42 65 76 65 |inTop = |MiscBeve|
|00001e60| 6c 54 5b 32 5d 2e 48 3b | 0d 0a 09 57 2e 42 75 74 |lT[2].H;|...W.But|
|00001e70| 74 6f 6e 2e 57 69 6e 57 | 69 64 74 68 20 3d 20 43 |ton.WinW|idth = C|
|00001e80| 6f 6d 62 6f 42 74 6e 55 | 70 2e 57 3b 0d 0a 0d 0a |omboBtnU|p.W;....|
|00001e90| 09 69 66 28 57 2e 62 42 | 75 74 74 6f 6e 73 29 0d |.if(W.bB|uttons).|
|00001ea0| 0a 09 7b 0d 0a 09 09 57 | 2e 45 64 69 74 42 6f 78 |..{....W|.EditBox|
|00001eb0| 2e 57 69 6e 57 69 64 74 | 68 20 3d 20 57 2e 45 64 |.WinWidt|h = W.Ed|
|00001ec0| 69 74 42 6f 78 57 69 64 | 74 68 20 2d 20 4d 69 73 |itBoxWid|th - Mis|
|00001ed0| 63 42 65 76 65 6c 4c 5b | 32 5d 2e 57 20 2d 20 4d |cBevelL[|2].W - M|
|00001ee0| 69 73 63 42 65 76 65 6c | 52 5b 32 5d 2e 57 20 2d |iscBevel|R[2].W -|
|00001ef0| 20 43 6f 6d 62 6f 42 74 | 6e 55 70 2e 57 20 2d 20 | ComboBt|nUp.W - |
|00001f00| 53 42 4c 65 66 74 55 70 | 2e 57 20 2d 20 53 42 52 |SBLeftUp|.W - SBR|
|00001f10| 69 67 68 74 55 70 2e 57 | 3b 0d 0a 09 09 57 2e 45 |ightUp.W|;....W.E|
|00001f20| 64 69 74 42 6f 78 2e 57 | 69 6e 48 65 69 67 68 74 |ditBox.W|inHeight|
|00001f30| 20 3d 20 57 2e 57 69 6e | 48 65 69 67 68 74 20 2d | = W.Win|Height -|
|00001f40| 20 4d 69 73 63 42 65 76 | 65 6c 54 5b 32 5d 2e 48 | MiscBev|elT[2].H|
|00001f50| 20 2d 20 4d 69 73 63 42 | 65 76 65 6c 42 5b 32 5d | - MiscB|evelB[2]|
|00001f60| 2e 48 3b 0d 0a 09 09 57 | 2e 42 75 74 74 6f 6e 2e |.H;....W|.Button.|
|00001f70| 57 69 6e 4c 65 66 74 20 | 3d 20 57 2e 57 69 6e 57 |WinLeft |= W.WinW|
|00001f80| 69 64 74 68 20 2d 20 43 | 6f 6d 62 6f 42 74 6e 55 |idth - C|omboBtnU|
|00001f90| 70 2e 57 20 2d 20 4d 69 | 73 63 42 65 76 65 6c 52 |p.W - Mi|scBevelR|
|00001fa0| 5b 32 5d 2e 57 20 2d 20 | 53 42 4c 65 66 74 55 70 |[2].W - |SBLeftUp|
|00001fb0| 2e 57 20 2d 20 53 42 52 | 69 67 68 74 55 70 2e 57 |.W - SBR|ightUp.W|
|00001fc0| 3b 0d 0a 09 09 57 2e 42 | 75 74 74 6f 6e 2e 57 69 |;....W.B|utton.Wi|
|00001fd0| 6e 54 6f 70 20 3d 20 57 | 2e 45 64 69 74 42 6f 78 |nTop = W|.EditBox|
|00001fe0| 2e 57 69 6e 54 6f 70 3b | 0d 0a 0d 0a 09 09 57 2e |.WinTop;|......W.|
|00001ff0| 4c 65 66 74 42 75 74 74 | 6f 6e 2e 57 69 6e 4c 65 |LeftButt|on.WinLe|
|00002000| 66 74 20 3d 20 57 2e 57 | 69 6e 57 69 64 74 68 20 |ft = W.W|inWidth |
|00002010| 2d 20 4d 69 73 63 42 65 | 76 65 6c 52 5b 32 5d 2e |- MiscBe|velR[2].|
|00002020| 57 20 2d 20 53 42 4c 65 | 66 74 55 70 2e 57 20 2d |W - SBLe|ftUp.W -|
|00002030| 20 53 42 52 69 67 68 74 | 55 70 2e 57 3b 0d 0a 09 | SBRight|Up.W;...|
|00002040| 09 57 2e 4c 65 66 74 42 | 75 74 74 6f 6e 2e 57 69 |.W.LeftB|utton.Wi|
|00002050| 6e 54 6f 70 20 3d 20 57 | 2e 45 64 69 74 42 6f 78 |nTop = W|.EditBox|
|00002060| 2e 57 69 6e 54 6f 70 3b | 0d 0a 09 09 57 2e 52 69 |.WinTop;|....W.Ri|
|00002070| 67 68 74 42 75 74 74 6f | 6e 2e 57 69 6e 4c 65 66 |ghtButto|n.WinLef|
|00002080| 74 20 3d 20 57 2e 57 69 | 6e 57 69 64 74 68 20 2d |t = W.Wi|nWidth -|
|00002090| 20 4d 69 73 63 42 65 76 | 65 6c 52 5b 32 5d 2e 57 | MiscBev|elR[2].W|
|000020a0| 20 2d 20 53 42 52 69 67 | 68 74 55 70 2e 57 3b 0d | - SBRig|htUp.W;.|
|000020b0| 0a 09 09 57 2e 52 69 67 | 68 74 42 75 74 74 6f 6e |...W.Rig|htButton|
|000020c0| 2e 57 69 6e 54 6f 70 20 | 3d 20 57 2e 45 64 69 74 |.WinTop |= W.Edit|
|000020d0| 42 6f 78 2e 57 69 6e 54 | 6f 70 3b 0d 0a 0d 0a 09 |Box.WinT|op;.....|
|000020e0| 09 57 2e 4c 65 66 74 42 | 75 74 74 6f 6e 2e 57 69 |.W.LeftB|utton.Wi|
|000020f0| 6e 57 69 64 74 68 20 3d | 20 53 42 4c 65 66 74 55 |nWidth =| SBLeftU|
|00002100| 70 2e 57 3b 0d 0a 09 09 | 57 2e 4c 65 66 74 42 75 |p.W;....|W.LeftBu|
|00002110| 74 74 6f 6e 2e 57 69 6e | 48 65 69 67 68 74 20 3d |tton.Win|Height =|
|00002120| 20 53 42 4c 65 66 74 55 | 70 2e 48 3b 0d 0a 09 09 | SBLeftU|p.H;....|
|00002130| 57 2e 52 69 67 68 74 42 | 75 74 74 6f 6e 2e 57 69 |W.RightB|utton.Wi|
|00002140| 6e 57 69 64 74 68 20 3d | 20 53 42 52 69 67 68 74 |nWidth =| SBRight|
|00002150| 55 70 2e 57 3b 0d 0a 09 | 09 57 2e 52 69 67 68 74 |Up.W;...|.W.Right|
|00002160| 42 75 74 74 6f 6e 2e 57 | 69 6e 48 65 69 67 68 74 |Button.W|inHeight|
|00002170| 20 3d 20 53 42 52 69 67 | 68 74 55 70 2e 48 3b 0d | = SBRig|htUp.H;.|
|00002180| 0a 09 7d 0d 0a 09 65 6c | 73 65 0d 0a 09 7b 0d 0a |..}...el|se...{..|
|00002190| 09 09 57 2e 45 64 69 74 | 42 6f 78 2e 57 69 6e 57 |..W.Edit|Box.WinW|
|000021a0| 69 64 74 68 20 3d 20 57 | 2e 45 64 69 74 42 6f 78 |idth = W|.EditBox|
|000021b0| 57 69 64 74 68 20 2d 20 | 4d 69 73 63 42 65 76 65 |Width - |MiscBeve|
|000021c0| 6c 4c 5b 32 5d 2e 57 20 | 2d 20 4d 69 73 63 42 65 |lL[2].W |- MiscBe|
|000021d0| 76 65 6c 52 5b 32 5d 2e | 57 20 2d 20 43 6f 6d 62 |velR[2].|W - Comb|
|000021e0| 6f 42 74 6e 55 70 2e 57 | 3b 0d 0a 09 09 57 2e 45 |oBtnUp.W|;....W.E|
|000021f0| 64 69 74 42 6f 78 2e 57 | 69 6e 48 65 69 67 68 74 |ditBox.W|inHeight|
|00002200| 20 3d 20 57 2e 57 69 6e | 48 65 69 67 68 74 20 2d | = W.Win|Height -|
|00002210| 20 4d 69 73 63 42 65 76 | 65 6c 54 5b 32 5d 2e 48 | MiscBev|elT[2].H|
|00002220| 20 2d 20 4d 69 73 63 42 | 65 76 65 6c 42 5b 32 5d | - MiscB|evelB[2]|
|00002230| 2e 48 3b 0d 0a 09 09 57 | 2e 42 75 74 74 6f 6e 2e |.H;....W|.Button.|
|00002240| 57 69 6e 4c 65 66 74 20 | 3d 20 57 2e 57 69 6e 57 |WinLeft |= W.WinW|
|00002250| 69 64 74 68 20 2d 20 43 | 6f 6d 62 6f 42 74 6e 55 |idth - C|omboBtnU|
|00002260| 70 2e 57 20 2d 20 4d 69 | 73 63 42 65 76 65 6c 52 |p.W - Mi|scBevelR|
|00002270| 5b 32 5d 2e 57 3b 0d 0a | 09 09 57 2e 42 75 74 74 |[2].W;..|..W.Butt|
|00002280| 6f 6e 2e 57 69 6e 54 6f | 70 20 3d 20 57 2e 45 64 |on.WinTo|p = W.Ed|
|00002290| 69 74 42 6f 78 2e 57 69 | 6e 54 6f 70 3b 0d 0a 09 |itBox.Wi|nTop;...|
|000022a0| 7d 0d 0a 09 57 2e 42 75 | 74 74 6f 6e 2e 57 69 6e |}...W.Bu|tton.Win|
|000022b0| 48 65 69 67 68 74 20 3d | 20 57 2e 45 64 69 74 42 |Height =| W.EditB|
|000022c0| 6f 78 2e 57 69 6e 48 65 | 69 67 68 74 3b 0d 0a 7d |ox.WinHe|ight;..}|
|000022d0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 43 6f 6d |....func|tion Com|
|000022e0| 62 6f 5f 44 72 61 77 28 | 55 57 69 6e 64 6f 77 43 |bo_Draw(|UWindowC|
|000022f0| 6f 6d 62 6f 43 6f 6e 74 | 72 6f 6c 20 57 2c 20 43 |omboCont|rol W, C|
|00002300| 61 6e 76 61 73 20 43 29 | 0d 0a 7b 0d 0a 09 57 2e |anvas C)|..{...W.|
|00002310| 44 72 61 77 4d 69 73 63 | 42 65 76 65 6c 28 43 2c |DrawMisc|Bevel(C,|
|00002320| 20 57 2e 45 64 69 74 41 | 72 65 61 44 72 61 77 58 | W.EditA|reaDrawX|
|00002330| 2c 20 30 2c 20 57 2e 45 | 64 69 74 42 6f 78 57 69 |, 0, W.E|ditBoxWi|
|00002340| 64 74 68 2c 20 57 2e 57 | 69 6e 48 65 69 67 68 74 |dth, W.W|inHeight|
|00002350| 2c 20 4d 69 73 63 2c 20 | 32 29 3b 0d 0a 0d 0a 09 |, Misc, |2);.....|
|00002360| 69 66 28 57 2e 54 65 78 | 74 20 21 3d 20 22 22 29 |if(W.Tex|t != "")|
|00002370| 0d 0a 09 7b 0d 0a 09 09 | 43 2e 44 72 61 77 43 6f |...{....|C.DrawCo|
|00002380| 6c 6f 72 20 3d 20 57 2e | 54 65 78 74 43 6f 6c 6f |lor = W.|TextColo|
|00002390| 72 3b 0d 0a 09 09 57 2e | 43 6c 69 70 54 65 78 74 |r;....W.|ClipText|
|000023a0| 28 43 2c 20 57 2e 54 65 | 78 74 58 2c 20 57 2e 54 |(C, W.Te|xtX, W.T|
|000023b0| 65 78 74 59 2c 20 57 2e | 54 65 78 74 29 3b 0d 0a |extY, W.|Text);..|
|000023c0| 09 09 43 2e 44 72 61 77 | 43 6f 6c 6f 72 2e 52 20 |..C.Draw|Color.R |
|000023d0| 3d 20 32 35 35 3b 0d 0a | 09 09 43 2e 44 72 61 77 |= 255;..|..C.Draw|
|000023e0| 43 6f 6c 6f 72 2e 47 20 | 3d 20 32 35 35 3b 0d 0a |Color.G |= 255;..|
|000023f0| 09 09 43 2e 44 72 61 77 | 43 6f 6c 6f 72 2e 42 20 |..C.Draw|Color.B |
|00002400| 3d 20 32 35 35 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |= 255;..|.}..}...|
|00002410| 0a 66 75 6e 63 74 69 6f | 6e 20 43 6f 6d 62 6f 4c |.functio|n ComboL|
|00002420| 69 73 74 5f 44 72 61 77 | 42 61 63 6b 67 72 6f 75 |ist_Draw|Backgrou|
|00002430| 6e 64 28 55 57 69 6e 64 | 6f 77 43 6f 6d 62 6f 4c |nd(UWind|owComboL|
|00002440| 69 73 74 20 57 2c 20 43 | 61 6e 76 61 73 20 43 29 |ist W, C|anvas C)|
|00002450| 0d 0a 7b 0d 0a 09 57 2e | 44 72 61 77 43 6c 69 70 |..{...W.|DrawClip|
|00002460| 70 65 64 54 65 78 74 75 | 72 65 28 43 2c 20 30 2c |pedTextu|re(C, 0,|
|00002470| 20 30 2c 20 54 65 78 74 | 75 72 65 27 55 57 69 6e | 0, Text|ure'UWin|
|00002480| 64 6f 77 2e 4d 65 6e 75 | 54 4c 27 29 3b 0d 0a 09 |dow.Menu|TL');...|
|00002490| 57 2e 44 72 61 77 53 74 | 72 65 74 63 68 65 64 54 |W.DrawSt|retchedT|
|000024a0| 65 78 74 75 72 65 28 43 | 2c 20 34 2c 20 30 2c 20 |exture(C|, 4, 0, |
|000024b0| 57 2e 57 69 6e 57 69 64 | 74 68 2d 38 2c 20 34 2c |W.WinWid|th-8, 4,|
|000024c0| 20 54 65 78 74 75 72 65 | 27 55 57 69 6e 64 6f 77 | Texture|'UWindow|
|000024d0| 2e 4d 65 6e 75 54 27 29 | 3b 0d 0a 09 57 2e 44 72 |.MenuT')|;...W.Dr|
|000024e0| 61 77 43 6c 69 70 70 65 | 64 54 65 78 74 75 72 65 |awClippe|dTexture|
|000024f0| 28 43 2c 20 57 2e 57 69 | 6e 57 69 64 74 68 2d 34 |(C, W.Wi|nWidth-4|
|00002500| 2c 20 30 2c 20 54 65 78 | 74 75 72 65 27 55 57 69 |, 0, Tex|ture'UWi|
|00002510| 6e 64 6f 77 2e 4d 65 6e | 75 54 52 27 29 3b 0d 0a |ndow.Men|uTR');..|
|00002520| 0d 0a 09 57 2e 44 72 61 | 77 43 6c 69 70 70 65 64 |...W.Dra|wClipped|
|00002530| 54 65 78 74 75 72 65 28 | 43 2c 20 30 2c 20 57 2e |Texture(|C, 0, W.|
|00002540| 57 69 6e 48 65 69 67 68 | 74 2d 34 2c 20 54 65 78 |WinHeigh|t-4, Tex|
|00002550| 74 75 72 65 27 55 57 69 | 6e 64 6f 77 2e 4d 65 6e |ture'UWi|ndow.Men|
|00002560| 75 42 4c 27 29 3b 0d 0a | 09 57 2e 44 72 61 77 53 |uBL');..|.W.DrawS|
|00002570| 74 72 65 74 63 68 65 64 | 54 65 78 74 75 72 65 28 |tretched|Texture(|
|00002580| 43 2c 20 34 2c 20 57 2e | 57 69 6e 48 65 69 67 68 |C, 4, W.|WinHeigh|
|00002590| 74 2d 34 2c 20 57 2e 57 | 69 6e 57 69 64 74 68 2d |t-4, W.W|inWidth-|
|000025a0| 38 2c 20 34 2c 20 54 65 | 78 74 75 72 65 27 55 57 |8, 4, Te|xture'UW|
|000025b0| 69 6e 64 6f 77 2e 4d 65 | 6e 75 42 27 29 3b 0d 0a |indow.Me|nuB');..|
|000025c0| 09 57 2e 44 72 61 77 43 | 6c 69 70 70 65 64 54 65 |.W.DrawC|lippedTe|
|000025d0| 78 74 75 72 65 28 43 2c | 20 57 2e 57 69 6e 57 69 |xture(C,| W.WinWi|
|000025e0| 64 74 68 2d 34 2c 20 57 | 2e 57 69 6e 48 65 69 67 |dth-4, W|.WinHeig|
|000025f0| 68 74 2d 34 2c 20 54 65 | 78 74 75 72 65 27 55 57 |ht-4, Te|xture'UW|
|00002600| 69 6e 64 6f 77 2e 4d 65 | 6e 75 42 52 27 29 3b 0d |indow.Me|nuBR');.|
|00002610| 0a 0d 0a 09 57 2e 44 72 | 61 77 53 74 72 65 74 63 |....W.Dr|awStretc|
|00002620| 68 65 64 54 65 78 74 75 | 72 65 28 43 2c 20 30 2c |hedTextu|re(C, 0,|
|00002630| 20 34 2c 20 34 2c 20 57 | 2e 57 69 6e 48 65 69 67 | 4, 4, W|.WinHeig|
|00002640| 68 74 2d 38 2c 20 54 65 | 78 74 75 72 65 27 55 57 |ht-8, Te|xture'UW|
|00002650| 69 6e 64 6f 77 2e 4d 65 | 6e 75 4c 27 29 3b 0d 0a |indow.Me|nuL');..|
|00002660| 09 57 2e 44 72 61 77 53 | 74 72 65 74 63 68 65 64 |.W.DrawS|tretched|
|00002670| 54 65 78 74 75 72 65 28 | 43 2c 20 57 2e 57 69 6e |Texture(|C, W.Win|
|00002680| 57 69 64 74 68 2d 34 2c | 20 34 2c 20 34 2c 20 57 |Width-4,| 4, 4, W|
|00002690| 2e 57 69 6e 48 65 69 67 | 68 74 2d 38 2c 20 54 65 |.WinHeig|ht-8, Te|
|000026a0| 78 74 75 72 65 27 55 57 | 69 6e 64 6f 77 2e 4d 65 |xture'UW|indow.Me|
|000026b0| 6e 75 52 27 29 3b 0d 0a | 0d 0a 09 57 2e 44 72 61 |nuR');..|...W.Dra|
|000026c0| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|000026d0| 65 28 43 2c 20 34 2c 20 | 34 2c 20 57 2e 57 69 6e |e(C, 4, |4, W.Win|
|000026e0| 57 69 64 74 68 2d 38 2c | 20 57 2e 57 69 6e 48 65 |Width-8,| W.WinHe|
|000026f0| 69 67 68 74 2d 38 2c 20 | 54 65 78 74 75 72 65 27 |ight-8, |Texture'|
|00002700| 55 57 69 6e 64 6f 77 2e | 4d 65 6e 75 41 72 65 61 |UWindow.|MenuArea|
|00002710| 27 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |');..}..|..functi|
|00002720| 6f 6e 20 43 6f 6d 62 6f | 4c 69 73 74 5f 44 72 61 |on Combo|List_Dra|
|00002730| 77 49 74 65 6d 28 55 57 | 69 6e 64 6f 77 43 6f 6d |wItem(UW|indowCom|
|00002740| 62 6f 4c 69 73 74 20 43 | 6f 6d 62 6f 2c 20 43 61 |boList C|ombo, Ca|
|00002750| 6e 76 61 73 20 43 2c 20 | 66 6c 6f 61 74 20 58 2c |nvas C, |float X,|
|00002760| 20 66 6c 6f 61 74 20 59 | 2c 20 66 6c 6f 61 74 20 | float Y|, float |
|00002770| 57 2c 20 66 6c 6f 61 74 | 20 48 2c 20 73 74 72 69 |W, float| H, stri|
|00002780| 6e 67 20 54 65 78 74 2c | 20 62 6f 6f 6c 20 62 53 |ng Text,| bool bS|
|00002790| 65 6c 65 63 74 65 64 29 | 0d 0a 7b 0d 0a 09 43 2e |elected)|..{...C.|
|000027a0| 44 72 61 77 43 6f 6c 6f | 72 2e 52 20 3d 20 32 35 |DrawColo|r.R = 25|
|000027b0| 35 3b 0d 0a 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |5;...C.D|rawColor|
|000027c0| 2e 47 20 3d 20 32 35 35 | 3b 0d 0a 09 43 2e 44 72 |.G = 255|;...C.Dr|
|000027d0| 61 77 43 6f 6c 6f 72 2e | 42 20 3d 20 32 35 35 3b |awColor.|B = 255;|
|000027e0| 0d 0a 0d 0a 09 69 66 28 | 62 53 65 6c 65 63 74 65 |.....if(|bSelecte|
|000027f0| 64 29 0d 0a 09 7b 0d 0a | 09 09 43 6f 6d 62 6f 2e |d)...{..|..Combo.|
|00002800| 44 72 61 77 53 74 72 65 | 74 63 68 65 64 54 65 78 |DrawStre|tchedTex|
|00002810| 74 75 72 65 28 43 2c 20 | 58 2c 20 59 2c 20 57 2c |ture(C, |X, Y, W,|
|00002820| 20 48 2c 20 54 65 78 74 | 75 72 65 27 55 57 69 6e | H, Text|ure'UWin|
|00002830| 64 6f 77 2e 4d 65 6e 75 | 48 69 67 68 6c 69 67 68 |dow.Menu|Highligh|
|00002840| 74 27 29 3b 0d 0a 09 09 | 43 2e 44 72 61 77 43 6f |t');....|C.DrawCo|
|00002850| 6c 6f 72 2e 52 20 3d 20 | 30 3b 0d 0a 09 09 43 2e |lor.R = |0;....C.|
|00002860| 44 72 61 77 43 6f 6c 6f | 72 2e 47 20 3d 20 30 3b |DrawColo|r.G = 0;|
|00002870| 0d 0a 09 09 43 2e 44 72 | 61 77 43 6f 6c 6f 72 2e |....C.Dr|awColor.|
|00002880| 42 20 3d 20 30 3b 0d 0a | 09 7d 0d 0a 09 65 6c 73 |B = 0;..|.}...els|
|00002890| 65 0d 0a 09 7b 0d 0a 09 | 09 43 2e 44 72 61 77 43 |e...{...|.C.DrawC|
|000028a0| 6f 6c 6f 72 2e 52 20 3d | 20 30 3b 0d 0a 09 09 43 |olor.R =| 0;....C|
|000028b0| 2e 44 72 61 77 43 6f 6c | 6f 72 2e 47 20 3d 20 30 |.DrawCol|or.G = 0|
|000028c0| 3b 0d 0a 09 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |;....C.D|rawColor|
|000028d0| 2e 42 20 3d 20 30 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |.B = 0;.|..}.....|
|000028e0| 43 6f 6d 62 6f 2e 43 6c | 69 70 54 65 78 74 28 43 |Combo.Cl|ipText(C|
|000028f0| 2c 20 58 20 2b 20 43 6f | 6d 62 6f 2e 54 65 78 74 |, X + Co|mbo.Text|
|00002900| 42 6f 72 64 65 72 20 2b | 20 32 2c 20 59 20 2b 20 |Border +| 2, Y + |
|00002910| 33 2c 20 54 65 78 74 29 | 3b 0d 0a 7d 0d 0a 0d 0a |3, Text)|;..}....|
|00002920| 66 75 6e 63 74 69 6f 6e | 20 43 68 65 63 6b 62 6f |function| Checkbo|
|00002930| 78 5f 53 65 74 75 70 53 | 69 7a 65 73 28 55 57 69 |x_SetupS|izes(UWi|
|00002940| 6e 64 6f 77 43 68 65 63 | 6b 62 6f 78 20 57 2c 20 |ndowChec|kbox W, |
|00002950| 43 61 6e 76 61 73 20 43 | 29 0d 0a 7b 0d 0a 09 6c |Canvas C|)..{...l|
|00002960| 6f 63 61 6c 20 66 6c 6f | 61 74 20 54 57 2c 20 54 |ocal flo|at TW, T|
|00002970| 48 3b 0d 0a 0d 0a 09 57 | 2e 54 65 78 74 53 69 7a |H;.....W|.TextSiz|
|00002980| 65 28 43 2c 20 57 2e 54 | 65 78 74 2c 20 54 57 2c |e(C, W.T|ext, TW,|
|00002990| 20 54 48 29 3b 0d 0a 09 | 57 2e 57 69 6e 48 65 69 | TH);...|W.WinHei|
|000029a0| 67 68 74 20 3d 20 4d 61 | 78 28 54 48 2b 31 2c 20 |ght = Ma|x(TH+1, |
|000029b0| 31 36 29 3b 0d 0a 09 0d | 0a 09 73 77 69 74 63 68 |16);....|..switch|
|000029c0| 28 57 2e 41 6c 69 67 6e | 29 0d 0a 09 7b 0d 0a 09 |(W.Align|)...{...|
|000029d0| 63 61 73 65 20 54 41 5f | 4c 65 66 74 3a 0d 0a 09 |case TA_|Left:...|
|000029e0| 09 57 2e 49 6d 61 67 65 | 58 20 3d 20 57 2e 57 69 |.W.Image|X = W.Wi|
|000029f0| 6e 57 69 64 74 68 20 2d | 20 31 36 3b 0d 0a 09 09 |nWidth -| 16;....|
|00002a00| 57 2e 54 65 78 74 58 20 | 3d 20 30 3b 0d 0a 09 09 |W.TextX |= 0;....|
|00002a10| 62 72 65 61 6b 3b 0d 0a | 09 63 61 73 65 20 54 41 |break;..|.case TA|
|00002a20| 5f 52 69 67 68 74 3a 0d | 0a 09 09 57 2e 49 6d 61 |_Right:.|...W.Ima|
|00002a30| 67 65 58 20 3d 20 30 3b | 09 0d 0a 09 09 57 2e 54 |geX = 0;|.....W.T|
|00002a40| 65 78 74 58 20 3d 20 57 | 2e 57 69 6e 57 69 64 74 |extX = W|.WinWidt|
|00002a50| 68 20 2d 20 54 57 3b 0d | 0a 09 09 62 72 65 61 6b |h - TW;.|...break|
|00002a60| 3b 0d 0a 09 63 61 73 65 | 20 54 41 5f 43 65 6e 74 |;...case| TA_Cent|
|00002a70| 65 72 3a 0d 0a 09 09 57 | 2e 49 6d 61 67 65 58 20 |er:....W|.ImageX |
|00002a80| 3d 20 28 57 2e 57 69 6e | 57 69 64 74 68 20 2d 20 |= (W.Win|Width - |
|00002a90| 31 36 29 20 2f 20 32 3b | 0d 0a 09 09 57 2e 54 65 |16) / 2;|....W.Te|
|00002aa0| 78 74 58 20 3d 20 28 57 | 2e 57 69 6e 57 69 64 74 |xtX = (W|.WinWidt|
|00002ab0| 68 20 2d 20 54 57 29 20 | 2f 20 32 3b 0d 0a 09 09 |h - TW) |/ 2;....|
|00002ac0| 62 72 65 61 6b 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 57 |break;..|.}.....W|
|00002ad0| 2e 49 6d 61 67 65 59 20 | 3d 20 28 57 2e 57 69 6e |.ImageY |= (W.Win|
|00002ae0| 48 65 69 67 68 74 20 2d | 20 31 36 29 20 2f 20 32 |Height -| 16) / 2|
|00002af0| 3b 0d 0a 09 57 2e 54 65 | 78 74 59 20 3d 20 28 57 |;...W.Te|xtY = (W|
|00002b00| 2e 57 69 6e 48 65 69 67 | 68 74 20 2d 20 54 48 29 |.WinHeig|ht - TH)|
|00002b10| 20 2f 20 32 3b 0d 0a 0d | 0a 09 69 66 28 57 2e 62 | / 2;...|..if(W.b|
|00002b20| 43 68 65 63 6b 65 64 29 | 20 0d 0a 09 7b 0d 0a 09 |Checked)| ...{...|
|00002b30| 09 57 2e 55 70 54 65 78 | 74 75 72 65 20 3d 20 54 |.W.UpTex|ture = T|
|00002b40| 65 78 74 75 72 65 27 43 | 68 6b 43 68 65 63 6b 65 |exture'C|hkChecke|
|00002b50| 64 27 3b 0d 0a 09 09 57 | 2e 44 6f 77 6e 54 65 78 |d';....W|.DownTex|
|00002b60| 74 75 72 65 20 3d 20 54 | 65 78 74 75 72 65 27 43 |ture = T|exture'C|
|00002b70| 68 6b 43 68 65 63 6b 65 | 64 27 3b 0d 0a 09 09 57 |hkChecke|d';....W|
|00002b80| 2e 4f 76 65 72 54 65 78 | 74 75 72 65 20 3d 20 54 |.OverTex|ture = T|
|00002b90| 65 78 74 75 72 65 27 43 | 68 6b 43 68 65 63 6b 65 |exture'C|hkChecke|
|00002ba0| 64 27 3b 0d 0a 09 09 57 | 2e 44 69 73 61 62 6c 65 |d';....W|.Disable|
|00002bb0| 64 54 65 78 74 75 72 65 | 20 3d 20 54 65 78 74 75 |dTexture| = Textu|
|00002bc0| 72 65 27 43 68 6b 43 68 | 65 63 6b 65 64 44 69 73 |re'ChkCh|eckedDis|
|00002bd0| 61 62 6c 65 64 27 3b 0d | 0a 09 7d 0d 0a 09 65 6c |abled';.|..}...el|
|00002be0| 73 65 20 0d 0a 09 7b 0d | 0a 09 09 57 2e 55 70 54 |se ...{.|...W.UpT|
|00002bf0| 65 78 74 75 72 65 20 3d | 20 54 65 78 74 75 72 65 |exture =| Texture|
|00002c00| 27 43 68 6b 55 6e 63 68 | 65 63 6b 65 64 27 3b 0d |'ChkUnch|ecked';.|
|00002c10| 0a 09 09 57 2e 44 6f 77 | 6e 54 65 78 74 75 72 65 |...W.Dow|nTexture|
|00002c20| 20 3d 20 54 65 78 74 75 | 72 65 27 43 68 6b 55 6e | = Textu|re'ChkUn|
|00002c30| 63 68 65 63 6b 65 64 27 | 3b 0d 0a 09 09 57 2e 4f |checked'|;....W.O|
|00002c40| 76 65 72 54 65 78 74 75 | 72 65 20 3d 20 54 65 78 |verTextu|re = Tex|
|00002c50| 74 75 72 65 27 43 68 6b | 55 6e 63 68 65 63 6b 65 |ture'Chk|Unchecke|
|00002c60| 64 27 3b 0d 0a 09 09 57 | 2e 44 69 73 61 62 6c 65 |d';....W|.Disable|
|00002c70| 64 54 65 78 74 75 72 65 | 20 3d 20 54 65 78 74 75 |dTexture| = Textu|
|00002c80| 72 65 27 43 68 6b 55 6e | 63 68 65 63 6b 65 64 44 |re'ChkUn|checkedD|
|00002c90| 69 73 61 62 6c 65 64 27 | 3b 0d 0a 09 7d 0d 0a 7d |isabled'|;...}..}|
|00002ca0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 43 6f 6d |....func|tion Com|
|00002cb0| 62 6f 5f 47 65 74 42 75 | 74 74 6f 6e 42 69 74 6d |bo_GetBu|ttonBitm|
|00002cc0| 61 70 73 28 55 57 69 6e | 64 6f 77 43 6f 6d 62 6f |aps(UWin|dowCombo|
|00002cd0| 42 75 74 74 6f 6e 20 57 | 29 0d 0a 7b 0d 0a 09 6c |Button W|)..{...l|
|00002ce0| 6f 63 61 6c 20 54 65 78 | 74 75 72 65 20 54 3b 0d |ocal Tex|ture T;.|
|00002cf0| 0a 0d 0a 09 54 20 3d 20 | 57 2e 47 65 74 4c 6f 6f |....T = |W.GetLoo|
|00002d00| 6b 41 6e 64 46 65 65 6c | 54 65 78 74 75 72 65 28 |kAndFeel|Texture(|
|00002d10| 29 3b 0d 0a 09 0d 0a 09 | 57 2e 62 55 73 65 52 65 |);......|W.bUseRe|
|00002d20| 67 69 6f 6e 20 3d 20 54 | 72 75 65 3b 0d 0a 0d 0a |gion = T|rue;....|
|00002d30| 09 57 2e 55 70 54 65 78 | 74 75 72 65 20 3d 20 54 |.W.UpTex|ture = T|
|00002d40| 3b 0d 0a 09 57 2e 44 6f | 77 6e 54 65 78 74 75 72 |;...W.Do|wnTextur|
|00002d50| 65 20 3d 20 54 3b 0d 0a | 09 57 2e 4f 76 65 72 54 |e = T;..|.W.OverT|
|00002d60| 65 78 74 75 72 65 20 3d | 20 54 3b 0d 0a 09 57 2e |exture =| T;...W.|
|00002d70| 44 69 73 61 62 6c 65 64 | 54 65 78 74 75 72 65 20 |Disabled|Texture |
|00002d80| 3d 20 54 3b 0d 0a 0d 0a | 09 57 2e 55 70 52 65 67 |= T;....|.W.UpReg|
|00002d90| 69 6f 6e 20 3d 20 43 6f | 6d 62 6f 42 74 6e 55 70 |ion = Co|mboBtnUp|
|00002da0| 3b 0d 0a 09 57 2e 44 6f | 77 6e 52 65 67 69 6f 6e |;...W.Do|wnRegion|
|00002db0| 20 3d 20 43 6f 6d 62 6f | 42 74 6e 44 6f 77 6e 3b | = Combo|BtnDown;|
|00002dc0| 0d 0a 09 57 2e 4f 76 65 | 72 52 65 67 69 6f 6e 20 |...W.Ove|rRegion |
|00002dd0| 3d 20 43 6f 6d 62 6f 42 | 74 6e 55 70 3b 0d 0a 09 |= ComboB|tnUp;...|
|00002de0| 57 2e 44 69 73 61 62 6c | 65 64 52 65 67 69 6f 6e |W.Disabl|edRegion|
|00002df0| 20 3d 20 43 6f 6d 62 6f | 42 74 6e 44 69 73 61 62 | = Combo|BtnDisab|
|00002e00| 6c 65 64 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |led;..}.|...funct|
|00002e10| 69 6f 6e 20 45 64 69 74 | 62 6f 78 5f 53 65 74 75 |ion Edit|box_Setu|
|00002e20| 70 53 69 7a 65 73 28 55 | 57 69 6e 64 6f 77 45 64 |pSizes(U|WindowEd|
|00002e30| 69 74 43 6f 6e 74 72 6f | 6c 20 57 2c 20 43 61 6e |itContro|l W, Can|
|00002e40| 76 61 73 20 43 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |vas C)..|{...loca|
|00002e50| 6c 20 66 6c 6f 61 74 20 | 54 57 2c 20 54 48 3b 0d |l float |TW, TH;.|
|00002e60| 0a 09 6c 6f 63 61 6c 20 | 69 6e 74 20 42 3b 0d 0a |..local |int B;..|
|00002e70| 0d 0a 09 42 20 3d 20 45 | 64 69 74 42 6f 78 42 65 |...B = E|ditBoxBe|
|00002e80| 76 65 6c 3b 0d 0a 09 09 | 0d 0a 09 43 2e 46 6f 6e |vel;....|...C.Fon|
|00002e90| 74 20 3d 20 57 2e 52 6f | 6f 74 2e 46 6f 6e 74 73 |t = W.Ro|ot.Fonts|
|00002ea0| 5b 57 2e 46 6f 6e 74 5d | 3b 0d 0a 09 57 2e 54 65 |[W.Font]|;...W.Te|
|00002eb0| 78 74 53 69 7a 65 28 43 | 2c 20 57 2e 54 65 78 74 |xtSize(C|, W.Text|
|00002ec0| 2c 20 54 57 2c 20 54 48 | 29 3b 0d 0a 09 0d 0a 09 |, TW, TH|);......|
|00002ed0| 57 2e 57 69 6e 48 65 69 | 67 68 74 20 3d 20 31 32 |W.WinHei|ght = 12|
|00002ee0| 20 2b 20 4d 69 73 63 42 | 65 76 65 6c 54 5b 42 5d | + MiscB|evelT[B]|
|00002ef0| 2e 48 20 2b 20 4d 69 73 | 63 42 65 76 65 6c 42 5b |.H + Mis|cBevelB[|
|00002f00| 42 5d 2e 48 3b 0d 0a 09 | 0d 0a 09 73 77 69 74 63 |B].H;...|...switc|
|00002f10| 68 28 57 2e 41 6c 69 67 | 6e 29 0d 0a 09 7b 0d 0a |h(W.Alig|n)...{..|
|00002f20| 09 63 61 73 65 20 54 41 | 5f 4c 65 66 74 3a 0d 0a |.case TA|_Left:..|
|00002f30| 09 09 57 2e 45 64 69 74 | 41 72 65 61 44 72 61 77 |..W.Edit|AreaDraw|
|00002f40| 58 20 3d 20 57 2e 57 69 | 6e 57 69 64 74 68 20 2d |X = W.Wi|nWidth -|
|00002f50| 20 57 2e 45 64 69 74 42 | 6f 78 57 69 64 74 68 3b | W.EditB|oxWidth;|
|00002f60| 0d 0a 09 09 57 2e 54 65 | 78 74 58 20 3d 20 30 3b |....W.Te|xtX = 0;|
|00002f70| 0d 0a 09 09 62 72 65 61 | 6b 3b 0d 0a 09 63 61 73 |....brea|k;...cas|
|00002f80| 65 20 54 41 5f 52 69 67 | 68 74 3a 0d 0a 09 09 57 |e TA_Rig|ht:....W|
|00002f90| 2e 45 64 69 74 41 72 65 | 61 44 72 61 77 58 20 3d |.EditAre|aDrawX =|
|00002fa0| 20 30 3b 09 0d 0a 09 09 | 57 2e 54 65 78 74 58 20 | 0;.....|W.TextX |
|00002fb0| 3d 20 57 2e 57 69 6e 57 | 69 64 74 68 20 2d 20 54 |= W.WinW|idth - T|
|00002fc0| 57 3b 0d 0a 09 09 62 72 | 65 61 6b 3b 0d 0a 09 63 |W;....br|eak;...c|
|00002fd0| 61 73 65 20 54 41 5f 43 | 65 6e 74 65 72 3a 0d 0a |ase TA_C|enter:..|
|00002fe0| 09 09 57 2e 45 64 69 74 | 41 72 65 61 44 72 61 77 |..W.Edit|AreaDraw|
|00002ff0| 58 20 3d 20 28 57 2e 57 | 69 6e 57 69 64 74 68 20 |X = (W.W|inWidth |
|00003000| 2d 20 57 2e 45 64 69 74 | 42 6f 78 57 69 64 74 68 |- W.Edit|BoxWidth|
|00003010| 29 20 2f 20 32 3b 0d 0a | 09 09 57 2e 54 65 78 74 |) / 2;..|..W.Text|
|00003020| 58 20 3d 20 28 57 2e 57 | 69 6e 57 69 64 74 68 20 |X = (W.W|inWidth |
|00003030| 2d 20 54 57 29 20 2f 20 | 32 3b 0d 0a 09 09 62 72 |- TW) / |2;....br|
|00003040| 65 61 6b 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 57 2e 45 |eak;...}|.....W.E|
|00003050| 64 69 74 41 72 65 61 44 | 72 61 77 59 20 3d 20 28 |ditAreaD|rawY = (|
|00003060| 57 2e 57 69 6e 48 65 69 | 67 68 74 20 2d 20 32 29 |W.WinHei|ght - 2)|
|00003070| 20 2f 20 32 3b 0d 0a 09 | 57 2e 54 65 78 74 59 20 | / 2;...|W.TextY |
|00003080| 3d 20 28 57 2e 57 69 6e | 48 65 69 67 68 74 20 2d |= (W.Win|Height -|
|00003090| 20 54 48 29 20 2f 20 32 | 3b 0d 0a 0d 0a 09 57 2e | TH) / 2|;.....W.|
|000030a0| 45 64 69 74 42 6f 78 2e | 57 69 6e 4c 65 66 74 20 |EditBox.|WinLeft |
|000030b0| 3d 20 57 2e 45 64 69 74 | 41 72 65 61 44 72 61 77 |= W.Edit|AreaDraw|
|000030c0| 58 20 2b 20 4d 69 73 63 | 42 65 76 65 6c 4c 5b 42 |X + Misc|BevelL[B|
|000030d0| 5d 2e 57 3b 0d 0a 09 57 | 2e 45 64 69 74 42 6f 78 |].W;...W|.EditBox|
|000030e0| 2e 57 69 6e 54 6f 70 20 | 3d 20 4d 69 73 63 42 65 |.WinTop |= MiscBe|
|000030f0| 76 65 6c 54 5b 42 5d 2e | 48 3b 0d 0a 09 57 2e 45 |velT[B].|H;...W.E|
|00003100| 64 69 74 42 6f 78 2e 57 | 69 6e 57 69 64 74 68 20 |ditBox.W|inWidth |
|00003110| 3d 20 57 2e 45 64 69 74 | 42 6f 78 57 69 64 74 68 |= W.Edit|BoxWidth|
|00003120| 20 2d 20 4d 69 73 63 42 | 65 76 65 6c 4c 5b 42 5d | - MiscB|evelL[B]|
|00003130| 2e 57 20 2d 20 4d 69 73 | 63 42 65 76 65 6c 52 5b |.W - Mis|cBevelR[|
|00003140| 42 5d 2e 57 3b 0d 0a 09 | 57 2e 45 64 69 74 42 6f |B].W;...|W.EditBo|
|00003150| 78 2e 57 69 6e 48 65 69 | 67 68 74 20 3d 20 57 2e |x.WinHei|ght = W.|
|00003160| 57 69 6e 48 65 69 67 68 | 74 20 2d 20 4d 69 73 63 |WinHeigh|t - Misc|
|00003170| 42 65 76 65 6c 54 5b 42 | 5d 2e 48 20 2d 20 4d 69 |BevelT[B|].H - Mi|
|00003180| 73 63 42 65 76 65 6c 42 | 5b 42 5d 2e 48 3b 0d 0a |scBevelB|[B].H;..|
|00003190| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 45 64 |}....fun|ction Ed|
|000031a0| 69 74 62 6f 78 5f 44 72 | 61 77 28 55 57 69 6e 64 |itbox_Dr|aw(UWind|
|000031b0| 6f 77 45 64 69 74 43 6f | 6e 74 72 6f 6c 20 57 2c |owEditCo|ntrol W,|
|000031c0| 20 43 61 6e 76 61 73 20 | 43 29 0d 0a 7b 0d 0a 09 | Canvas |C)..{...|
|000031d0| 57 2e 44 72 61 77 4d 69 | 73 63 42 65 76 65 6c 28 |W.DrawMi|scBevel(|
|000031e0| 43 2c 20 57 2e 45 64 69 | 74 41 72 65 61 44 72 61 |C, W.Edi|tAreaDra|
|000031f0| 77 58 2c 20 30 2c 20 57 | 2e 45 64 69 74 42 6f 78 |wX, 0, W|.EditBox|
|00003200| 57 69 64 74 68 2c 20 57 | 2e 57 69 6e 48 65 69 67 |Width, W|.WinHeig|
|00003210| 68 74 2c 20 4d 69 73 63 | 2c 20 45 64 69 74 42 6f |ht, Misc|, EditBo|
|00003220| 78 42 65 76 65 6c 29 3b | 0d 0a 0d 0a 09 69 66 28 |xBevel);|.....if(|
|00003230| 57 2e 54 65 78 74 20 21 | 3d 20 22 22 29 0d 0a 09 |W.Text !|= "")...|
|00003240| 7b 0d 0a 09 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |{....C.D|rawColor|
|00003250| 20 3d 20 57 2e 54 65 78 | 74 43 6f 6c 6f 72 3b 0d | = W.Tex|tColor;.|
|00003260| 0a 09 09 57 2e 43 6c 69 | 70 54 65 78 74 28 43 2c |...W.Cli|pText(C,|
|00003270| 20 57 2e 54 65 78 74 58 | 2c 20 57 2e 54 65 78 74 | W.TextX|, W.Text|
|00003280| 59 2c 20 57 2e 54 65 78 | 74 29 3b 0d 0a 09 09 43 |Y, W.Tex|t);....C|
|00003290| 2e 44 72 61 77 43 6f 6c | 6f 72 2e 52 20 3d 20 32 |.DrawCol|or.R = 2|
|000032a0| 35 35 3b 0d 0a 09 09 43 | 2e 44 72 61 77 43 6f 6c |55;....C|.DrawCol|
|000032b0| 6f 72 2e 47 20 3d 20 32 | 35 35 3b 0d 0a 09 09 43 |or.G = 2|55;....C|
|000032c0| 2e 44 72 61 77 43 6f 6c | 6f 72 2e 42 20 3d 20 32 |.DrawCol|or.B = 2|
|000032d0| 35 35 3b 0d 0a 09 7d 0d | 0a 7d 0d 0a 0d 0a 66 75 |55;...}.|.}....fu|
|000032e0| 6e 63 74 69 6f 6e 20 54 | 61 62 5f 44 72 61 77 54 |nction T|ab_DrawT|
|000032f0| 61 62 28 55 57 69 6e 64 | 6f 77 54 61 62 43 6f 6e |ab(UWind|owTabCon|
|00003300| 74 72 6f 6c 54 61 62 41 | 72 65 61 20 54 61 62 2c |trolTabA|rea Tab,|
|00003310| 20 43 61 6e 76 61 73 20 | 43 2c 20 62 6f 6f 6c 20 | Canvas |C, bool |
|00003320| 62 41 63 74 69 76 65 54 | 61 62 2c 20 62 6f 6f 6c |bActiveT|ab, bool|
|00003330| 20 62 4c 65 66 74 6d 6f | 73 74 54 61 62 2c 20 66 | bLeftmo|stTab, f|
|00003340| 6c 6f 61 74 20 58 2c 20 | 66 6c 6f 61 74 20 59 2c |loat X, |float Y,|
|00003350| 20 66 6c 6f 61 74 20 57 | 2c 20 66 6c 6f 61 74 20 | float W|, float |
|00003360| 48 2c 20 73 74 72 69 6e | 67 20 54 65 78 74 2c 20 |H, strin|g Text, |
|00003370| 62 6f 6f 6c 20 62 53 68 | 6f 77 54 65 78 74 29 0d |bool bSh|owText).|
|00003380| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 52 65 67 69 6f |.{...loc|al Regio|
|00003390| 6e 20 52 3b 0d 0a 09 6c | 6f 63 61 6c 20 54 65 78 |n R;...l|ocal Tex|
|000033a0| 74 75 72 65 20 54 3b 0d | 0a 09 6c 6f 63 61 6c 20 |ture T;.|..local |
|000033b0| 66 6c 6f 61 74 20 54 57 | 2c 20 54 48 3b 0d 0a 0d |float TW|, TH;...|
|000033c0| 0a 09 43 2e 44 72 61 77 | 43 6f 6c 6f 72 2e 52 20 |..C.Draw|Color.R |
|000033d0| 3d 20 32 35 35 3b 0d 0a | 09 43 2e 44 72 61 77 43 |= 255;..|.C.DrawC|
|000033e0| 6f 6c 6f 72 2e 47 20 3d | 20 32 35 35 3b 0d 0a 09 |olor.G =| 255;...|
|000033f0| 43 2e 44 72 61 77 43 6f | 6c 6f 72 2e 42 20 3d 20 |C.DrawCo|lor.B = |
|00003400| 32 35 35 3b 0d 0a 0d 0a | 09 54 20 3d 20 54 61 62 |255;....|.T = Tab|
|00003410| 2e 47 65 74 4c 6f 6f 6b | 41 6e 64 46 65 65 6c 54 |.GetLook|AndFeelT|
|00003420| 65 78 74 75 72 65 28 29 | 3b 0d 0a 09 0d 0a 09 69 |exture()|;......i|
|00003430| 66 28 62 41 63 74 69 76 | 65 54 61 62 29 0d 0a 09 |f(bActiv|eTab)...|
|00003440| 7b 0d 0a 09 09 52 20 3d | 20 54 61 62 53 65 6c 65 |{....R =| TabSele|
|00003450| 63 74 65 64 4c 3b 0d 0a | 09 09 54 61 62 2e 44 72 |ctedL;..|..Tab.Dr|
|00003460| 61 77 53 74 72 65 74 63 | 68 65 64 54 65 78 74 75 |awStretc|hedTextu|
|00003470| 72 65 53 65 67 6d 65 6e | 74 28 20 43 2c 20 58 2c |reSegmen|t( C, X,|
|00003480| 20 59 2c 20 52 2e 57 2c | 20 52 2e 48 2c 20 52 2e | Y, R.W,| R.H, R.|
|00003490| 58 2c 20 52 2e 59 2c 20 | 52 2e 57 2c 20 52 2e 48 |X, R.Y, |R.W, R.H|
|000034a0| 2c 20 54 20 29 3b 0d 0a | 0d 0a 09 09 52 20 3d 20 |, T );..|....R = |
|000034b0| 54 61 62 53 65 6c 65 63 | 74 65 64 4d 3b 0d 0a 09 |TabSelec|tedM;...|
|000034c0| 09 54 61 62 2e 44 72 61 | 77 53 74 72 65 74 63 68 |.Tab.Dra|wStretch|
|000034d0| 65 64 54 65 78 74 75 72 | 65 53 65 67 6d 65 6e 74 |edTextur|eSegment|
|000034e0| 28 20 43 2c 20 58 2b 54 | 61 62 53 65 6c 65 63 74 |( C, X+T|abSelect|
|000034f0| 65 64 4c 2e 57 2c 20 59 | 2c 20 0d 0a 09 09 09 09 |edL.W, Y|, ......|
|00003500| 09 09 09 09 09 09 57 20 | 2d 20 54 61 62 53 65 6c |......W |- TabSel|
|00003510| 65 63 74 65 64 4c 2e 57 | 0d 0a 09 09 09 09 09 09 |ectedL.W|........|
|00003520| 09 09 09 09 2d 20 54 61 | 62 53 65 6c 65 63 74 65 |....- Ta|bSelecte|
|00003530| 64 52 2e 57 2c 0d 0a 09 | 09 09 09 09 09 09 09 09 |dR.W,...|........|
|00003540| 09 52 2e 48 2c 20 52 2e | 58 2c 20 52 2e 59 2c 20 |.R.H, R.|X, R.Y, |
|00003550| 52 2e 57 2c 20 52 2e 48 | 2c 20 54 20 29 3b 0d 0a |R.W, R.H|, T );..|
|00003560| 0d 0a 09 09 52 20 3d 20 | 54 61 62 53 65 6c 65 63 |....R = |TabSelec|
|00003570| 74 65 64 52 3b 0d 0a 09 | 09 54 61 62 2e 44 72 61 |tedR;...|.Tab.Dra|
|00003580| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|00003590| 65 53 65 67 6d 65 6e 74 | 28 20 43 2c 20 58 20 2b |eSegment|( C, X +|
|000035a0| 20 57 20 2d 20 52 2e 57 | 2c 20 59 2c 20 52 2e 57 | W - R.W|, Y, R.W|
|000035b0| 2c 20 52 2e 48 2c 20 52 | 2e 58 2c 20 52 2e 59 2c |, R.H, R|.X, R.Y,|
|000035c0| 20 52 2e 57 2c 20 52 2e | 48 2c 20 54 20 29 3b 0d | R.W, R.|H, T );.|
|000035d0| 0a 0d 0a 09 09 43 2e 46 | 6f 6e 74 20 3d 20 54 61 |.....C.F|ont = Ta|
|000035e0| 62 2e 52 6f 6f 74 2e 46 | 6f 6e 74 73 5b 54 61 62 |b.Root.F|onts[Tab|
|000035f0| 2e 46 5f 42 6f 6c 64 5d | 3b 0d 0a 09 09 43 2e 44 |.F_Bold]|;....C.D|
|00003600| 72 61 77 43 6f 6c 6f 72 | 2e 52 20 3d 20 30 3b 0d |rawColor|.R = 0;.|
|00003610| 0a 09 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 2e 47 |...C.Dra|wColor.G|
|00003620| 20 3d 20 30 3b 0d 0a 09 | 09 43 2e 44 72 61 77 43 | = 0;...|.C.DrawC|
|00003630| 6f 6c 6f 72 2e 42 20 3d | 20 30 3b 0d 0a 0d 0a 09 |olor.B =| 0;.....|
|00003640| 09 69 66 28 62 53 68 6f | 77 54 65 78 74 29 0d 0a |.if(bSho|wText)..|
|00003650| 09 09 7b 0d 0a 09 09 09 | 54 61 62 2e 54 65 78 74 |..{.....|Tab.Text|
|00003660| 53 69 7a 65 28 43 2c 20 | 54 65 78 74 2c 20 54 57 |Size(C, |Text, TW|
|00003670| 2c 20 54 48 29 3b 0d 0a | 09 09 09 54 61 62 2e 43 |, TH);..|...Tab.C|
|00003680| 6c 69 70 54 65 78 74 28 | 43 2c 20 58 20 2b 20 28 |lipText(|C, X + (|
|00003690| 57 2d 54 57 29 2f 32 2c | 20 59 20 2b 20 33 2c 20 |W-TW)/2,| Y + 3, |
|000036a0| 54 65 78 74 2c 20 54 72 | 75 65 29 3b 0d 0a 09 09 |Text, Tr|ue);....|
|000036b0| 7d 0d 0a 09 7d 0d 0a 09 | 65 6c 73 65 0d 0a 09 7b |}...}...|else...{|
|000036c0| 0d 0a 09 09 52 20 3d 20 | 54 61 62 55 6e 73 65 6c |....R = |TabUnsel|
|000036d0| 65 63 74 65 64 4c 3b 0d | 0a 09 09 54 61 62 2e 44 |ectedL;.|...Tab.D|
|000036e0| 72 61 77 53 74 72 65 74 | 63 68 65 64 54 65 78 74 |rawStret|chedText|
|000036f0| 75 72 65 53 65 67 6d 65 | 6e 74 28 20 43 2c 20 58 |ureSegme|nt( C, X|
|00003700| 2c 20 59 2c 20 52 2e 57 | 2c 20 52 2e 48 2c 20 52 |, Y, R.W|, R.H, R|
|00003710| 2e 58 2c 20 52 2e 59 2c | 20 52 2e 57 2c 20 52 2e |.X, R.Y,| R.W, R.|
|00003720| 48 2c 20 54 20 29 3b 0d | 0a 0d 0a 09 09 52 20 3d |H, T );.|.....R =|
|00003730| 20 54 61 62 55 6e 73 65 | 6c 65 63 74 65 64 4d 3b | TabUnse|lectedM;|
|00003740| 0d 0a 09 09 54 61 62 2e | 44 72 61 77 53 74 72 65 |....Tab.|DrawStre|
|00003750| 74 63 68 65 64 54 65 78 | 74 75 72 65 53 65 67 6d |tchedTex|tureSegm|
|00003760| 65 6e 74 28 20 43 2c 20 | 58 2b 54 61 62 55 6e 73 |ent( C, |X+TabUns|
|00003770| 65 6c 65 63 74 65 64 4c | 2e 57 2c 20 59 2c 20 0d |electedL|.W, Y, .|
|00003780| 0a 09 09 09 09 09 09 09 | 09 09 09 57 20 2d 20 54 |........|...W - T|
|00003790| 61 62 55 6e 73 65 6c 65 | 63 74 65 64 4c 2e 57 0d |abUnsele|ctedL.W.|
|000037a0| 0a 09 09 09 09 09 09 09 | 09 09 09 2d 20 54 61 62 |........|...- Tab|
|000037b0| 55 6e 73 65 6c 65 63 74 | 65 64 52 2e 57 2c 0d 0a |Unselect|edR.W,..|
|000037c0| 09 09 09 09 09 09 09 09 | 09 09 52 2e 48 2c 20 52 |........|..R.H, R|
|000037d0| 2e 58 2c 20 52 2e 59 2c | 20 52 2e 57 2c 20 52 2e |.X, R.Y,| R.W, R.|
|000037e0| 48 2c 20 54 20 29 3b 0d | 0a 0d 0a 09 09 52 20 3d |H, T );.|.....R =|
|000037f0| 20 54 61 62 55 6e 73 65 | 6c 65 63 74 65 64 52 3b | TabUnse|lectedR;|
|00003800| 0d 0a 09 09 54 61 62 2e | 44 72 61 77 53 74 72 65 |....Tab.|DrawStre|
|00003810| 74 63 68 65 64 54 65 78 | 74 75 72 65 53 65 67 6d |tchedTex|tureSegm|
|00003820| 65 6e 74 28 20 43 2c 20 | 58 20 2b 20 57 20 2d 20 |ent( C, |X + W - |
|00003830| 52 2e 57 2c 20 59 2c 20 | 52 2e 57 2c 20 52 2e 48 |R.W, Y, |R.W, R.H|
|00003840| 2c 20 52 2e 58 2c 20 52 | 2e 59 2c 20 52 2e 57 2c |, R.X, R|.Y, R.W,|
|00003850| 20 52 2e 48 2c 20 54 20 | 29 3b 0d 0a 0d 0a 09 09 | R.H, T |);......|
|00003860| 43 2e 46 6f 6e 74 20 3d | 20 54 61 62 2e 52 6f 6f |C.Font =| Tab.Roo|
|00003870| 74 2e 46 6f 6e 74 73 5b | 54 61 62 2e 46 5f 4e 6f |t.Fonts[|Tab.F_No|
|00003880| 72 6d 61 6c 5d 3b 0d 0a | 09 09 43 2e 44 72 61 77 |rmal];..|..C.Draw|
|00003890| 43 6f 6c 6f 72 2e 52 20 | 3d 20 30 3b 0d 0a 09 09 |Color.R |= 0;....|
|000038a0| 43 2e 44 72 61 77 43 6f | 6c 6f 72 2e 47 20 3d 20 |C.DrawCo|lor.G = |
|000038b0| 30 3b 0d 0a 09 09 43 2e | 44 72 61 77 43 6f 6c 6f |0;....C.|DrawColo|
|000038c0| 72 2e 42 20 3d 20 30 3b | 0d 0a 0d 0a 09 09 69 66 |r.B = 0;|......if|
|000038d0| 28 62 53 68 6f 77 54 65 | 78 74 29 0d 0a 09 09 7b |(bShowTe|xt)....{|
|000038e0| 0d 0a 09 09 09 54 61 62 | 2e 54 65 78 74 53 69 7a |.....Tab|.TextSiz|
|000038f0| 65 28 43 2c 20 54 65 78 | 74 2c 20 54 57 2c 20 54 |e(C, Tex|t, TW, T|
|00003900| 48 29 3b 0d 0a 09 09 09 | 54 61 62 2e 43 6c 69 70 |H);.....|Tab.Clip|
|00003910| 54 65 78 74 28 43 2c 20 | 58 20 2b 20 28 57 2d 54 |Text(C, |X + (W-T|
|00003920| 57 29 2f 32 2c 20 59 20 | 2b 20 34 2c 20 54 65 78 |W)/2, Y |+ 4, Tex|
|00003930| 74 2c 20 54 72 75 65 29 | 3b 0d 0a 09 09 7d 0d 0a |t, True)|;....}..|
|00003940| 09 7d 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |.}..}...|.functio|
|00003950| 6e 20 53 42 5f 53 65 74 | 75 70 55 70 42 75 74 74 |n SB_Set|upUpButt|
|00003960| 6f 6e 28 55 57 69 6e 64 | 6f 77 53 42 55 70 42 75 |on(UWind|owSBUpBu|
|00003970| 74 74 6f 6e 20 57 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |tton W).|.{...loc|
|00003980| 61 6c 20 54 65 78 74 75 | 72 65 20 54 3b 0d 0a 0d |al Textu|re T;...|
|00003990| 0a 09 54 20 3d 20 57 2e | 47 65 74 4c 6f 6f 6b 41 |..T = W.|GetLookA|
|000039a0| 6e 64 46 65 65 6c 54 65 | 78 74 75 72 65 28 29 3b |ndFeelTe|xture();|
|000039b0| 0d 0a 0d 0a 09 57 2e 62 | 55 73 65 52 65 67 69 6f |.....W.b|UseRegio|
|000039c0| 6e 20 3d 20 54 72 75 65 | 3b 0d 0a 0d 0a 09 57 2e |n = True|;.....W.|
|000039d0| 55 70 54 65 78 74 75 72 | 65 20 3d 20 54 3b 0d 0a |UpTextur|e = T;..|
|000039e0| 09 57 2e 44 6f 77 6e 54 | 65 78 74 75 72 65 20 3d |.W.DownT|exture =|
|000039f0| 20 54 3b 0d 0a 09 57 2e | 4f 76 65 72 54 65 78 74 | T;...W.|OverText|
|00003a00| 75 72 65 20 3d 20 54 3b | 0d 0a 09 57 2e 44 69 73 |ure = T;|...W.Dis|
|00003a10| 61 62 6c 65 64 54 65 78 | 74 75 72 65 20 3d 20 54 |abledTex|ture = T|
|00003a20| 3b 0d 0a 0d 0a 09 57 2e | 55 70 52 65 67 69 6f 6e |;.....W.|UpRegion|
|00003a30| 20 3d 20 53 42 55 70 55 | 70 3b 0d 0a 09 57 2e 44 | = SBUpU|p;...W.D|
|00003a40| 6f 77 6e 52 65 67 69 6f | 6e 20 3d 20 53 42 55 70 |ownRegio|n = SBUp|
|00003a50| 44 6f 77 6e 3b 0d 0a 09 | 57 2e 4f 76 65 72 52 65 |Down;...|W.OverRe|
|00003a60| 67 69 6f 6e 20 3d 20 53 | 42 55 70 55 70 3b 0d 0a |gion = S|BUpUp;..|
|00003a70| 09 57 2e 44 69 73 61 62 | 6c 65 64 52 65 67 69 6f |.W.Disab|ledRegio|
|00003a80| 6e 20 3d 20 53 42 55 70 | 44 69 73 61 62 6c 65 64 |n = SBUp|Disabled|
|00003a90| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00003aa0| 20 53 42 5f 53 65 74 75 | 70 44 6f 77 6e 42 75 74 | SB_Setu|pDownBut|
|00003ab0| 74 6f 6e 28 55 57 69 6e | 64 6f 77 53 42 44 6f 77 |ton(UWin|dowSBDow|
|00003ac0| 6e 42 75 74 74 6f 6e 20 | 57 29 0d 0a 7b 0d 0a 09 |nButton |W)..{...|
|00003ad0| 6c 6f 63 61 6c 20 54 65 | 78 74 75 72 65 20 54 3b |local Te|xture T;|
|00003ae0| 0d 0a 0d 0a 09 54 20 3d | 20 57 2e 47 65 74 4c 6f |.....T =| W.GetLo|
|00003af0| 6f 6b 41 6e 64 46 65 65 | 6c 54 65 78 74 75 72 65 |okAndFee|lTexture|
|00003b00| 28 29 3b 0d 0a 0d 0a 09 | 57 2e 62 55 73 65 52 65 |();.....|W.bUseRe|
|00003b10| 67 69 6f 6e 20 3d 20 54 | 72 75 65 3b 0d 0a 0d 0a |gion = T|rue;....|
|00003b20| 09 57 2e 55 70 54 65 78 | 74 75 72 65 20 3d 20 54 |.W.UpTex|ture = T|
|00003b30| 3b 0d 0a 09 57 2e 44 6f | 77 6e 54 65 78 74 75 72 |;...W.Do|wnTextur|
|00003b40| 65 20 3d 20 54 3b 0d 0a | 09 57 2e 4f 76 65 72 54 |e = T;..|.W.OverT|
|00003b50| 65 78 74 75 72 65 20 3d | 20 54 3b 0d 0a 09 57 2e |exture =| T;...W.|
|00003b60| 44 69 73 61 62 6c 65 64 | 54 65 78 74 75 72 65 20 |Disabled|Texture |
|00003b70| 3d 20 54 3b 0d 0a 0d 0a | 09 57 2e 55 70 52 65 67 |= T;....|.W.UpReg|
|00003b80| 69 6f 6e 20 3d 20 53 42 | 44 6f 77 6e 55 70 3b 0d |ion = SB|DownUp;.|
|00003b90| 0a 09 57 2e 44 6f 77 6e | 52 65 67 69 6f 6e 20 3d |..W.Down|Region =|
|00003ba0| 20 53 42 44 6f 77 6e 44 | 6f 77 6e 3b 0d 0a 09 57 | SBDownD|own;...W|
|00003bb0| 2e 4f 76 65 72 52 65 67 | 69 6f 6e 20 3d 20 53 42 |.OverReg|ion = SB|
|00003bc0| 44 6f 77 6e 55 70 3b 0d | 0a 09 57 2e 44 69 73 61 |DownUp;.|..W.Disa|
|00003bd0| 62 6c 65 64 52 65 67 69 | 6f 6e 20 3d 20 53 42 44 |bledRegi|on = SBD|
|00003be0| 6f 77 6e 44 69 73 61 62 | 6c 65 64 3b 0d 0a 7d 0d |ownDisab|led;..}.|
|00003bf0| 0a 0d 0a 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |.......f|unction |
|00003c00| 53 42 5f 53 65 74 75 70 | 4c 65 66 74 42 75 74 74 |SB_Setup|LeftButt|
|00003c10| 6f 6e 28 55 57 69 6e 64 | 6f 77 53 42 4c 65 66 74 |on(UWind|owSBLeft|
|00003c20| 42 75 74 74 6f 6e 20 57 | 29 0d 0a 7b 0d 0a 09 6c |Button W|)..{...l|
|00003c30| 6f 63 61 6c 20 54 65 78 | 74 75 72 65 20 54 3b 0d |ocal Tex|ture T;.|
|00003c40| 0a 0d 0a 09 54 20 3d 20 | 57 2e 47 65 74 4c 6f 6f |....T = |W.GetLoo|
|00003c50| 6b 41 6e 64 46 65 65 6c | 54 65 78 74 75 72 65 28 |kAndFeel|Texture(|
|00003c60| 29 3b 0d 0a 0d 0a 09 57 | 2e 62 55 73 65 52 65 67 |);.....W|.bUseReg|
|00003c70| 69 6f 6e 20 3d 20 54 72 | 75 65 3b 0d 0a 0d 0a 09 |ion = Tr|ue;.....|
|00003c80| 57 2e 55 70 54 65 78 74 | 75 72 65 20 3d 20 54 3b |W.UpText|ure = T;|
|00003c90| 0d 0a 09 57 2e 44 6f 77 | 6e 54 65 78 74 75 72 65 |...W.Dow|nTexture|
|00003ca0| 20 3d 20 54 3b 0d 0a 09 | 57 2e 4f 76 65 72 54 65 | = T;...|W.OverTe|
|00003cb0| 78 74 75 72 65 20 3d 20 | 54 3b 0d 0a 09 57 2e 44 |xture = |T;...W.D|
|00003cc0| 69 73 61 62 6c 65 64 54 | 65 78 74 75 72 65 20 3d |isabledT|exture =|
|00003cd0| 20 54 3b 0d 0a 0d 0a 09 | 57 2e 55 70 52 65 67 69 | T;.....|W.UpRegi|
|00003ce0| 6f 6e 20 3d 20 53 42 4c | 65 66 74 55 70 3b 0d 0a |on = SBL|eftUp;..|
|00003cf0| 09 57 2e 44 6f 77 6e 52 | 65 67 69 6f 6e 20 3d 20 |.W.DownR|egion = |
|00003d00| 53 42 4c 65 66 74 44 6f | 77 6e 3b 0d 0a 09 57 2e |SBLeftDo|wn;...W.|
|00003d10| 4f 76 65 72 52 65 67 69 | 6f 6e 20 3d 20 53 42 4c |OverRegi|on = SBL|
|00003d20| 65 66 74 55 70 3b 0d 0a | 09 57 2e 44 69 73 61 62 |eftUp;..|.W.Disab|
|00003d30| 6c 65 64 52 65 67 69 6f | 6e 20 3d 20 53 42 4c 65 |ledRegio|n = SBLe|
|00003d40| 66 74 44 69 73 61 62 6c | 65 64 3b 0d 0a 7d 0d 0a |ftDisabl|ed;..}..|
|00003d50| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 53 42 5f 53 65 |..functi|on SB_Se|
|00003d60| 74 75 70 52 69 67 68 74 | 42 75 74 74 6f 6e 28 55 |tupRight|Button(U|
|00003d70| 57 69 6e 64 6f 77 53 42 | 52 69 67 68 74 42 75 74 |WindowSB|RightBut|
|00003d80| 74 6f 6e 20 57 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |ton W)..|{...loca|
|00003d90| 6c 20 54 65 78 74 75 72 | 65 20 54 3b 0d 0a 0d 0a |l Textur|e T;....|
|00003da0| 09 54 20 3d 20 57 2e 47 | 65 74 4c 6f 6f 6b 41 6e |.T = W.G|etLookAn|
|00003db0| 64 46 65 65 6c 54 65 78 | 74 75 72 65 28 29 3b 0d |dFeelTex|ture();.|
|00003dc0| 0a 0d 0a 09 57 2e 62 55 | 73 65 52 65 67 69 6f 6e |....W.bU|seRegion|
|00003dd0| 20 3d 20 54 72 75 65 3b | 0d 0a 0d 0a 09 57 2e 55 | = True;|.....W.U|
|00003de0| 70 54 65 78 74 75 72 65 | 20 3d 20 54 3b 0d 0a 09 |pTexture| = T;...|
|00003df0| 57 2e 44 6f 77 6e 54 65 | 78 74 75 72 65 20 3d 20 |W.DownTe|xture = |
|00003e00| 54 3b 0d 0a 09 57 2e 4f | 76 65 72 54 65 78 74 75 |T;...W.O|verTextu|
|00003e10| 72 65 20 3d 20 54 3b 0d | 0a 09 57 2e 44 69 73 61 |re = T;.|..W.Disa|
|00003e20| 62 6c 65 64 54 65 78 74 | 75 72 65 20 3d 20 54 3b |bledText|ure = T;|
|00003e30| 0d 0a 0d 0a 09 57 2e 55 | 70 52 65 67 69 6f 6e 20 |.....W.U|pRegion |
|00003e40| 3d 20 53 42 52 69 67 68 | 74 55 70 3b 0d 0a 09 57 |= SBRigh|tUp;...W|
|00003e50| 2e 44 6f 77 6e 52 65 67 | 69 6f 6e 20 3d 20 53 42 |.DownReg|ion = SB|
|00003e60| 52 69 67 68 74 44 6f 77 | 6e 3b 0d 0a 09 57 2e 4f |RightDow|n;...W.O|
|00003e70| 76 65 72 52 65 67 69 6f | 6e 20 3d 20 53 42 52 69 |verRegio|n = SBRi|
|00003e80| 67 68 74 55 70 3b 0d 0a | 09 57 2e 44 69 73 61 62 |ghtUp;..|.W.Disab|
|00003e90| 6c 65 64 52 65 67 69 6f | 6e 20 3d 20 53 42 52 69 |ledRegio|n = SBRi|
|00003ea0| 67 68 74 44 69 73 61 62 | 6c 65 64 3b 0d 0a 7d 0d |ghtDisab|led;..}.|
|00003eb0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 53 42 5f 56 |...funct|ion SB_V|
|00003ec0| 44 72 61 77 28 55 57 69 | 6e 64 6f 77 56 53 63 72 |Draw(UWi|ndowVScr|
|00003ed0| 6f 6c 6c 62 61 72 20 57 | 2c 20 43 61 6e 76 61 73 |ollbar W|, Canvas|
|00003ee0| 20 43 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 52 | C)..{..|.local R|
|00003ef0| 65 67 69 6f 6e 20 52 3b | 0d 0a 09 6c 6f 63 61 6c |egion R;|...local|
|00003f00| 20 54 65 78 74 75 72 65 | 20 54 3b 0d 0a 0d 0a 09 | Texture| T;.....|
|00003f10| 54 20 3d 20 57 2e 47 65 | 74 4c 6f 6f 6b 41 6e 64 |T = W.Ge|tLookAnd|
|00003f20| 46 65 65 6c 54 65 78 74 | 75 72 65 28 29 3b 0d 0a |FeelText|ure();..|
|00003f30| 0d 0a 09 52 20 3d 20 53 | 42 42 61 63 6b 67 72 6f |...R = S|BBackgro|
|00003f40| 75 6e 64 3b 0d 0a 09 57 | 2e 44 72 61 77 53 74 72 |und;...W|.DrawStr|
|00003f50| 65 74 63 68 65 64 54 65 | 78 74 75 72 65 53 65 67 |etchedTe|xtureSeg|
|00003f60| 6d 65 6e 74 28 20 43 2c | 20 30 2c 20 30 2c 20 57 |ment( C,| 0, 0, W|
|00003f70| 2e 57 69 6e 57 69 64 74 | 68 2c 20 57 2e 57 69 6e |.WinWidt|h, W.Win|
|00003f80| 48 65 69 67 68 74 2c 20 | 52 2e 58 2c 20 52 2e 59 |Height, |R.X, R.Y|
|00003f90| 2c 20 52 2e 57 2c 20 52 | 2e 48 2c 20 54 29 3b 0d |, R.W, R|.H, T);.|
|00003fa0| 0a 09 0d 0a 09 69 66 28 | 21 57 2e 62 44 69 73 61 |.....if(|!W.bDisa|
|00003fb0| 62 6c 65 64 29 0d 0a 09 | 7b 0d 0a 09 09 57 2e 44 |bled)...|{....W.D|
|00003fc0| 72 61 77 55 70 42 65 76 | 65 6c 28 20 43 2c 20 30 |rawUpBev|el( C, 0|
|00003fd0| 2c 20 57 2e 54 68 75 6d | 62 53 74 61 72 74 2c 20 |, W.Thum|bStart, |
|00003fe0| 53 69 7a 65 5f 53 63 72 | 6f 6c 6c 62 61 72 57 69 |Size_Scr|ollbarWi|
|00003ff0| 64 74 68 2c 09 57 2e 54 | 68 75 6d 62 48 65 69 67 |dth,.W.T|humbHeig|
|00004000| 68 74 2c 20 54 29 3b 0d | 0a 09 7d 0d 0a 7d 0d 0a |ht, T);.|..}..}..|
|00004010| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 53 42 5f 48 44 |..functi|on SB_HD|
|00004020| 72 61 77 28 55 57 69 6e | 64 6f 77 48 53 63 72 6f |raw(UWin|dowHScro|
|00004030| 6c 6c 62 61 72 20 57 2c | 20 43 61 6e 76 61 73 20 |llbar W,| Canvas |
|00004040| 43 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 52 65 |C)..{...|local Re|
|00004050| 67 69 6f 6e 20 52 3b 0d | 0a 09 6c 6f 63 61 6c 20 |gion R;.|..local |
|00004060| 54 65 78 74 75 72 65 20 | 54 3b 0d 0a 0d 0a 09 54 |Texture |T;.....T|
|00004070| 20 3d 20 57 2e 47 65 74 | 4c 6f 6f 6b 41 6e 64 46 | = W.Get|LookAndF|
|00004080| 65 65 6c 54 65 78 74 75 | 72 65 28 29 3b 0d 0a 0d |eelTextu|re();...|
|00004090| 0a 09 52 20 3d 20 53 42 | 42 61 63 6b 67 72 6f 75 |..R = SB|Backgrou|
|000040a0| 6e 64 3b 0d 0a 09 57 2e | 44 72 61 77 53 74 72 65 |nd;...W.|DrawStre|
|000040b0| 74 63 68 65 64 54 65 78 | 74 75 72 65 53 65 67 6d |tchedTex|tureSegm|
|000040c0| 65 6e 74 28 20 43 2c 20 | 30 2c 20 30 2c 20 57 2e |ent( C, |0, 0, W.|
|000040d0| 57 69 6e 57 69 64 74 68 | 2c 20 57 2e 57 69 6e 48 |WinWidth|, W.WinH|
|000040e0| 65 69 67 68 74 2c 20 52 | 2e 58 2c 20 52 2e 59 2c |eight, R|.X, R.Y,|
|000040f0| 20 52 2e 57 2c 20 52 2e | 48 2c 20 54 29 3b 0d 0a | R.W, R.|H, T);..|
|00004100| 09 0d 0a 09 69 66 28 21 | 57 2e 62 44 69 73 61 62 |....if(!|W.bDisab|
|00004110| 6c 65 64 29 20 0d 0a 09 | 7b 0d 0a 09 09 57 2e 44 |led) ...|{....W.D|
|00004120| 72 61 77 55 70 42 65 76 | 65 6c 28 20 43 2c 20 57 |rawUpBev|el( C, W|
|00004130| 2e 54 68 75 6d 62 53 74 | 61 72 74 2c 20 30 2c 20 |.ThumbSt|art, 0, |
|00004140| 57 2e 54 68 75 6d 62 57 | 69 64 74 68 2c 20 53 69 |W.ThumbW|idth, Si|
|00004150| 7a 65 5f 53 63 72 6f 6c | 6c 62 61 72 57 69 64 74 |ze_Scrol|lbarWidt|
|00004160| 68 2c 20 54 29 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |h, T);..|.}..}...|
|00004170| 0a 66 75 6e 63 74 69 6f | 6e 20 54 61 62 5f 53 65 |.functio|n Tab_Se|
|00004180| 74 75 70 4c 65 66 74 42 | 75 74 74 6f 6e 28 55 57 |tupLeftB|utton(UW|
|00004190| 69 6e 64 6f 77 54 61 62 | 43 6f 6e 74 72 6f 6c 4c |indowTab|ControlL|
|000041a0| 65 66 74 42 75 74 74 6f | 6e 20 57 29 0d 0a 7b 0d |eftButto|n W)..{.|
|000041b0| 0a 09 6c 6f 63 61 6c 20 | 54 65 78 74 75 72 65 20 |..local |Texture |
|000041c0| 54 3b 0d 0a 0d 0a 09 54 | 20 3d 20 57 2e 47 65 74 |T;.....T| = W.Get|
|000041d0| 4c 6f 6f 6b 41 6e 64 46 | 65 65 6c 54 65 78 74 75 |LookAndF|eelTextu|
|000041e0| 72 65 28 29 3b 0d 0a 0d | 0a 0d 0a 09 57 2e 57 69 |re();...|....W.Wi|
|000041f0| 6e 57 69 64 74 68 20 3d | 20 53 69 7a 65 5f 53 63 |nWidth =| Size_Sc|
|00004200| 72 6f 6c 6c 62 61 72 42 | 75 74 74 6f 6e 48 65 69 |rollbarB|uttonHei|
|00004210| 67 68 74 3b 0d 0a 09 57 | 2e 57 69 6e 48 65 69 67 |ght;...W|.WinHeig|
|00004220| 68 74 20 3d 20 53 69 7a | 65 5f 53 63 72 6f 6c 6c |ht = Siz|e_Scroll|
|00004230| 62 61 72 57 69 64 74 68 | 3b 0d 0a 09 57 2e 57 69 |barWidth|;...W.Wi|
|00004240| 6e 54 6f 70 20 3d 20 53 | 69 7a 65 5f 54 61 62 41 |nTop = S|ize_TabA|
|00004250| 72 65 61 48 65 69 67 68 | 74 20 2d 20 57 2e 57 69 |reaHeigh|t - W.Wi|
|00004260| 6e 48 65 69 67 68 74 3b | 0d 0a 09 57 2e 57 69 6e |nHeight;|...W.Win|
|00004270| 4c 65 66 74 20 3d 20 57 | 2e 50 61 72 65 6e 74 57 |Left = W|.ParentW|
|00004280| 69 6e 64 6f 77 2e 57 69 | 6e 57 69 64 74 68 20 2d |indow.Wi|nWidth -|
|00004290| 20 32 2a 57 2e 57 69 6e | 57 69 64 74 68 3b 0d 0a | 2*W.Win|Width;..|
|000042a0| 0d 0a 09 57 2e 62 55 73 | 65 52 65 67 69 6f 6e 20 |...W.bUs|eRegion |
|000042b0| 3d 20 54 72 75 65 3b 0d | 0a 0d 0a 09 57 2e 55 70 |= True;.|....W.Up|
|000042c0| 54 65 78 74 75 72 65 20 | 3d 20 54 3b 0d 0a 09 57 |Texture |= T;...W|
|000042d0| 2e 44 6f 77 6e 54 65 78 | 74 75 72 65 20 3d 20 54 |.DownTex|ture = T|
|000042e0| 3b 0d 0a 09 57 2e 4f 76 | 65 72 54 65 78 74 75 72 |;...W.Ov|erTextur|
|000042f0| 65 20 3d 20 54 3b 0d 0a | 09 57 2e 44 69 73 61 62 |e = T;..|.W.Disab|
|00004300| 6c 65 64 54 65 78 74 75 | 72 65 20 3d 20 54 3b 0d |ledTextu|re = T;.|
|00004310| 0a 0d 0a 09 57 2e 55 70 | 52 65 67 69 6f 6e 20 3d |....W.Up|Region =|
|00004320| 20 53 42 4c 65 66 74 55 | 70 3b 0d 0a 09 57 2e 44 | SBLeftU|p;...W.D|
|00004330| 6f 77 6e 52 65 67 69 6f | 6e 20 3d 20 53 42 4c 65 |ownRegio|n = SBLe|
|00004340| 66 74 44 6f 77 6e 3b 0d | 0a 09 57 2e 4f 76 65 72 |ftDown;.|..W.Over|
|00004350| 52 65 67 69 6f 6e 20 3d | 20 53 42 4c 65 66 74 55 |Region =| SBLeftU|
|00004360| 70 3b 0d 0a 09 57 2e 44 | 69 73 61 62 6c 65 64 52 |p;...W.D|isabledR|
|00004370| 65 67 69 6f 6e 20 3d 20 | 53 42 4c 65 66 74 44 69 |egion = |SBLeftDi|
|00004380| 73 61 62 6c 65 64 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |sabled;.|.}....fu|
|00004390| 6e 63 74 69 6f 6e 20 54 | 61 62 5f 53 65 74 75 70 |nction T|ab_Setup|
|000043a0| 52 69 67 68 74 42 75 74 | 74 6f 6e 28 55 57 69 6e |RightBut|ton(UWin|
|000043b0| 64 6f 77 54 61 62 43 6f | 6e 74 72 6f 6c 52 69 67 |dowTabCo|ntrolRig|
|000043c0| 68 74 42 75 74 74 6f 6e | 20 57 29 0d 0a 7b 0d 0a |htButton| W)..{..|
|000043d0| 09 6c 6f 63 61 6c 20 54 | 65 78 74 75 72 65 20 54 |.local T|exture T|
|000043e0| 3b 0d 0a 0d 0a 09 54 20 | 3d 20 57 2e 47 65 74 4c |;.....T |= W.GetL|
|000043f0| 6f 6f 6b 41 6e 64 46 65 | 65 6c 54 65 78 74 75 72 |ookAndFe|elTextur|
|00004400| 65 28 29 3b 0d 0a 0d 0a | 09 57 2e 57 69 6e 57 69 |e();....|.W.WinWi|
|00004410| 64 74 68 20 3d 20 53 69 | 7a 65 5f 53 63 72 6f 6c |dth = Si|ze_Scrol|
|00004420| 6c 62 61 72 42 75 74 74 | 6f 6e 48 65 69 67 68 74 |lbarButt|onHeight|
|00004430| 3b 0d 0a 09 57 2e 57 69 | 6e 48 65 69 67 68 74 20 |;...W.Wi|nHeight |
|00004440| 3d 20 53 69 7a 65 5f 53 | 63 72 6f 6c 6c 62 61 72 |= Size_S|crollbar|
|00004450| 57 69 64 74 68 3b 0d 0a | 09 57 2e 57 69 6e 54 6f |Width;..|.W.WinTo|
|00004460| 70 20 3d 20 53 69 7a 65 | 5f 54 61 62 41 72 65 61 |p = Size|_TabArea|
|00004470| 48 65 69 67 68 74 20 2d | 20 57 2e 57 69 6e 48 65 |Height -| W.WinHe|
|00004480| 69 67 68 74 3b 0d 0a 09 | 57 2e 57 69 6e 4c 65 66 |ight;...|W.WinLef|
|00004490| 74 20 3d 20 57 2e 50 61 | 72 65 6e 74 57 69 6e 64 |t = W.Pa|rentWind|
|000044a0| 6f 77 2e 57 69 6e 57 69 | 64 74 68 20 2d 20 57 2e |ow.WinWi|dth - W.|
|000044b0| 57 69 6e 57 69 64 74 68 | 3b 0d 0a 0d 0a 09 57 2e |WinWidth|;.....W.|
|000044c0| 62 55 73 65 52 65 67 69 | 6f 6e 20 3d 20 54 72 75 |bUseRegi|on = Tru|
|000044d0| 65 3b 0d 0a 0d 0a 09 57 | 2e 55 70 54 65 78 74 75 |e;.....W|.UpTextu|
|000044e0| 72 65 20 3d 20 54 3b 0d | 0a 09 57 2e 44 6f 77 6e |re = T;.|..W.Down|
|000044f0| 54 65 78 74 75 72 65 20 | 3d 20 54 3b 0d 0a 09 57 |Texture |= T;...W|
|00004500| 2e 4f 76 65 72 54 65 78 | 74 75 72 65 20 3d 20 54 |.OverTex|ture = T|
|00004510| 3b 0d 0a 09 57 2e 44 69 | 73 61 62 6c 65 64 54 65 |;...W.Di|sabledTe|
|00004520| 78 74 75 72 65 20 3d 20 | 54 3b 0d 0a 0d 0a 09 57 |xture = |T;.....W|
|00004530| 2e 55 70 52 65 67 69 6f | 6e 20 3d 20 53 42 52 69 |.UpRegio|n = SBRi|
|00004540| 67 68 74 55 70 3b 0d 0a | 09 57 2e 44 6f 77 6e 52 |ghtUp;..|.W.DownR|
|00004550| 65 67 69 6f 6e 20 3d 20 | 53 42 52 69 67 68 74 44 |egion = |SBRightD|
|00004560| 6f 77 6e 3b 0d 0a 09 57 | 2e 4f 76 65 72 52 65 67 |own;...W|.OverReg|
|00004570| 69 6f 6e 20 3d 20 53 42 | 52 69 67 68 74 55 70 3b |ion = SB|RightUp;|
|00004580| 0d 0a 09 57 2e 44 69 73 | 61 62 6c 65 64 52 65 67 |...W.Dis|abledReg|
|00004590| 69 6f 6e 20 3d 20 53 42 | 52 69 67 68 74 44 69 73 |ion = SB|RightDis|
|000045a0| 61 62 6c 65 64 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |abled;..|}....fun|
|000045b0| 63 74 69 6f 6e 20 54 61 | 62 5f 53 65 74 54 61 62 |ction Ta|b_SetTab|
|000045c0| 50 61 67 65 53 69 7a 65 | 28 55 57 69 6e 64 6f 77 |PageSize|(UWindow|
|000045d0| 50 61 67 65 43 6f 6e 74 | 72 6f 6c 20 57 2c 20 55 |PageCont|rol W, U|
|000045e0| 57 69 6e 64 6f 77 50 61 | 67 65 57 69 6e 64 6f 77 |WindowPa|geWindow|
|000045f0| 20 50 29 0d 0a 7b 0d 0a | 09 50 2e 57 69 6e 4c 65 | P)..{..|.P.WinLe|
|00004600| 66 74 20 3d 20 32 3b 0d | 0a 09 50 2e 57 69 6e 54 |ft = 2;.|..P.WinT|
|00004610| 6f 70 20 3d 20 57 2e 54 | 61 62 41 72 65 61 2e 57 |op = W.T|abArea.W|
|00004620| 69 6e 48 65 69 67 68 74 | 2d 28 54 61 62 53 65 6c |inHeight|-(TabSel|
|00004630| 65 63 74 65 64 4d 2e 48 | 2d 54 61 62 55 6e 73 65 |ectedM.H|-TabUnse|
|00004640| 6c 65 63 74 65 64 4d 2e | 48 29 20 2b 20 33 3b 0d |lectedM.|H) + 3;.|
|00004650| 0a 09 50 2e 53 65 74 53 | 69 7a 65 28 57 2e 57 69 |..P.SetS|ize(W.Wi|
|00004660| 6e 57 69 64 74 68 20 2d | 20 34 2c 20 57 2e 57 69 |nWidth -| 4, W.Wi|
|00004670| 6e 48 65 69 67 68 74 2d | 28 57 2e 54 61 62 41 72 |nHeight-|(W.TabAr|
|00004680| 65 61 2e 57 69 6e 48 65 | 69 67 68 74 2d 28 54 61 |ea.WinHe|ight-(Ta|
|00004690| 62 53 65 6c 65 63 74 65 | 64 4d 2e 48 2d 54 61 62 |bSelecte|dM.H-Tab|
|000046a0| 55 6e 73 65 6c 65 63 74 | 65 64 4d 2e 48 29 29 20 |Unselect|edM.H)) |
|000046b0| 2d 20 36 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |- 6);..}|....func|
|000046c0| 74 69 6f 6e 20 54 61 62 | 5f 44 72 61 77 54 61 62 |tion Tab|_DrawTab|
|000046d0| 50 61 67 65 41 72 65 61 | 28 55 57 69 6e 64 6f 77 |PageArea|(UWindow|
|000046e0| 50 61 67 65 43 6f 6e 74 | 72 6f 6c 20 57 2c 20 43 |PageCont|rol W, C|
|000046f0| 61 6e 76 61 73 20 43 2c | 20 55 57 69 6e 64 6f 77 |anvas C,| UWindow|
|00004700| 50 61 67 65 57 69 6e 64 | 6f 77 20 50 29 0d 0a 7b |PageWind|ow P)..{|
|00004710| 0d 0a 09 57 2e 44 72 61 | 77 55 70 42 65 76 65 6c |...W.Dra|wUpBevel|
|00004720| 28 20 43 2c 20 30 2c 20 | 53 69 7a 65 5f 54 61 62 |( C, 0, |Size_Tab|
|00004730| 41 72 65 61 48 65 69 67 | 68 74 2c 20 57 2e 57 69 |AreaHeig|ht, W.Wi|
|00004740| 6e 57 69 64 74 68 2c 20 | 57 2e 57 69 6e 48 65 69 |nWidth, |W.WinHei|
|00004750| 67 68 74 2d 53 69 7a 65 | 5f 54 61 62 41 72 65 61 |ght-Size|_TabArea|
|00004760| 48 65 69 67 68 74 2c 20 | 57 2e 47 65 74 4c 6f 6f |Height, |W.GetLoo|
|00004770| 6b 41 6e 64 46 65 65 6c | 54 65 78 74 75 72 65 28 |kAndFeel|Texture(|
|00004780| 29 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |));..}..|..functi|
|00004790| 6f 6e 20 54 61 62 5f 47 | 65 74 54 61 62 53 69 7a |on Tab_G|etTabSiz|
|000047a0| 65 28 55 57 69 6e 64 6f | 77 54 61 62 43 6f 6e 74 |e(UWindo|wTabCont|
|000047b0| 72 6f 6c 54 61 62 41 72 | 65 61 20 54 61 62 2c 20 |rolTabAr|ea Tab, |
|000047c0| 43 61 6e 76 61 73 20 43 | 2c 20 73 74 72 69 6e 67 |Canvas C|, string|
|000047d0| 20 54 65 78 74 2c 20 6f | 75 74 20 66 6c 6f 61 74 | Text, o|ut float|
|000047e0| 20 57 2c 20 6f 75 74 20 | 66 6c 6f 61 74 20 48 29 | W, out |float H)|
|000047f0| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 66 6c 6f 61 |..{...lo|cal floa|
|00004800| 74 20 54 57 2c 20 54 48 | 3b 0d 0a 0d 0a 09 43 2e |t TW, TH|;.....C.|
|00004810| 46 6f 6e 74 20 3d 20 54 | 61 62 2e 52 6f 6f 74 2e |Font = T|ab.Root.|
|00004820| 46 6f 6e 74 73 5b 54 61 | 62 2e 46 5f 4e 6f 72 6d |Fonts[Ta|b.F_Norm|
|00004830| 61 6c 5d 3b 0d 0a 0d 0a | 09 54 61 62 2e 54 65 78 |al];....|.Tab.Tex|
|00004840| 74 53 69 7a 65 28 20 43 | 2c 20 54 65 78 74 2c 20 |tSize( C|, Text, |
|00004850| 54 57 2c 20 54 48 20 29 | 3b 0d 0a 09 57 20 3d 20 |TW, TH )|;...W = |
|00004860| 54 57 20 2b 20 53 69 7a | 65 5f 54 61 62 53 70 61 |TW + Siz|e_TabSpa|
|00004870| 63 69 6e 67 3b 0d 0a 09 | 48 20 3d 20 54 48 3b 0d |cing;...|H = TH;.|
|00004880| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 4d |.}....fu|nction M|
|00004890| 65 6e 75 5f 44 72 61 77 | 4d 65 6e 75 42 61 72 28 |enu_Draw|MenuBar(|
|000048a0| 55 57 69 6e 64 6f 77 4d | 65 6e 75 42 61 72 20 57 |UWindowM|enuBar W|
|000048b0| 2c 20 43 61 6e 76 61 73 | 20 43 29 0d 0a 7b 0d 0a |, Canvas| C)..{..|
|000048c0| 09 57 2e 44 72 61 77 53 | 74 72 65 74 63 68 65 64 |.W.DrawS|tretched|
|000048d0| 54 65 78 74 75 72 65 28 | 20 43 2c 20 31 36 2c 20 |Texture(| C, 16, |
|000048e0| 30 2c 20 57 2e 57 69 6e | 57 69 64 74 68 20 2d 20 |0, W.Win|Width - |
|000048f0| 33 32 2c 20 31 36 2c 20 | 54 65 78 74 75 72 65 27 |32, 16, |Texture'|
|00004900| 55 57 69 6e 64 6f 77 2e | 4d 65 6e 75 42 61 72 27 |UWindow.|MenuBar'|
|00004910| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|00004920| 6e 20 4d 65 6e 75 5f 44 | 72 61 77 4d 65 6e 75 42 |n Menu_D|rawMenuB|
|00004930| 61 72 49 74 65 6d 28 55 | 57 69 6e 64 6f 77 4d 65 |arItem(U|WindowMe|
|00004940| 6e 75 42 61 72 20 42 2c | 20 55 57 69 6e 64 6f 77 |nuBar B,| UWindow|
|00004950| 4d 65 6e 75 42 61 72 49 | 74 65 6d 20 49 2c 20 66 |MenuBarI|tem I, f|
|00004960| 6c 6f 61 74 20 58 2c 20 | 66 6c 6f 61 74 20 59 2c |loat X, |float Y,|
|00004970| 20 66 6c 6f 61 74 20 57 | 2c 20 66 6c 6f 61 74 20 | float W|, float |
|00004980| 48 2c 20 43 61 6e 76 61 | 73 20 43 29 0d 0a 7b 0d |H, Canva|s C)..{.|
|00004990| 0a 09 69 66 28 42 2e 53 | 65 6c 65 63 74 65 64 20 |..if(B.S|elected |
|000049a0| 3d 3d 20 49 29 0d 0a 09 | 7b 0d 0a 09 09 42 2e 44 |== I)...|{....B.D|
|000049b0| 72 61 77 43 6c 69 70 70 | 65 64 54 65 78 74 75 72 |rawClipp|edTextur|
|000049c0| 65 28 43 2c 20 58 2c 20 | 31 2c 20 54 65 78 74 75 |e(C, X, |1, Textu|
|000049d0| 72 65 27 4d 65 6e 75 48 | 69 67 68 6c 69 67 68 74 |re'MenuH|ighlight|
|000049e0| 4c 27 29 3b 0d 0a 09 09 | 42 2e 44 72 61 77 43 6c |L');....|B.DrawCl|
|000049f0| 69 70 70 65 64 54 65 78 | 74 75 72 65 28 43 2c 20 |ippedTex|ture(C, |
|00004a00| 58 2b 57 2d 31 2c 20 31 | 2c 20 54 65 78 74 75 72 |X+W-1, 1|, Textur|
|00004a10| 65 27 4d 65 6e 75 48 69 | 67 68 6c 69 67 68 74 52 |e'MenuHi|ghlightR|
|00004a20| 27 29 3b 0d 0a 09 09 42 | 2e 44 72 61 77 53 74 72 |');....B|.DrawStr|
|00004a30| 65 74 63 68 65 64 54 65 | 78 74 75 72 65 28 43 2c |etchedTe|xture(C,|
|00004a40| 20 58 2b 31 2c 20 31 2c | 20 57 2d 32 2c 20 31 36 | X+1, 1,| W-2, 16|
|00004a50| 2c 20 54 65 78 74 75 72 | 65 27 4d 65 6e 75 48 69 |, Textur|e'MenuHi|
|00004a60| 67 68 6c 69 67 68 74 4d | 27 29 3b 0d 0a 09 7d 0d |ghlightM|');...}.|
|00004a70| 0a 0d 0a 09 43 2e 46 6f | 6e 74 20 3d 20 42 2e 52 |....C.Fo|nt = B.R|
|00004a80| 6f 6f 74 2e 46 6f 6e 74 | 73 5b 46 5f 4e 6f 72 6d |oot.Font|s[F_Norm|
|00004a90| 61 6c 5d 3b 0d 0a 09 43 | 2e 44 72 61 77 43 6f 6c |al];...C|.DrawCol|
|00004aa0| 6f 72 2e 52 20 3d 20 30 | 3b 0d 0a 09 43 2e 44 72 |or.R = 0|;...C.Dr|
|00004ab0| 61 77 43 6f 6c 6f 72 2e | 47 20 3d 20 30 3b 0d 0a |awColor.|G = 0;..|
|00004ac0| 09 43 2e 44 72 61 77 43 | 6f 6c 6f 72 2e 42 20 3d |.C.DrawC|olor.B =|
|00004ad0| 20 30 3b 0d 0a 0d 0a 09 | 42 2e 43 6c 69 70 54 65 | 0;.....|B.ClipTe|
|00004ae0| 78 74 28 43 2c 20 58 20 | 2b 20 42 2e 53 70 61 63 |xt(C, X |+ B.Spac|
|00004af0| 69 6e 67 20 2f 20 32 2c | 20 32 2c 20 49 2e 43 61 |ing / 2,| 2, I.Ca|
|00004b00| 70 74 69 6f 6e 2c 20 54 | 72 75 65 29 3b 0d 0a 7d |ption, T|rue);..}|
|00004b10| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 4d 65 6e |....func|tion Men|
|00004b20| 75 5f 44 72 61 77 50 75 | 6c 6c 64 6f 77 6e 4d 65 |u_DrawPu|lldownMe|
|00004b30| 6e 75 42 61 63 6b 67 72 | 6f 75 6e 64 28 55 57 69 |nuBackgr|ound(UWi|
|00004b40| 6e 64 6f 77 50 75 6c 6c | 64 6f 77 6e 4d 65 6e 75 |ndowPull|downMenu|
|00004b50| 20 57 2c 20 43 61 6e 76 | 61 73 20 43 29 0d 0a 7b | W, Canv|as C)..{|
|00004b60| 0d 0a 09 57 2e 44 72 61 | 77 43 6c 69 70 70 65 64 |...W.Dra|wClipped|
|00004b70| 54 65 78 74 75 72 65 28 | 43 2c 20 30 2c 20 30 2c |Texture(|C, 0, 0,|
|00004b80| 20 54 65 78 74 75 72 65 | 27 55 57 69 6e 64 6f 77 | Texture|'UWindow|
|00004b90| 2e 4d 65 6e 75 54 4c 27 | 29 3b 0d 0a 09 57 2e 44 |.MenuTL'|);...W.D|
|00004ba0| 72 61 77 53 74 72 65 74 | 63 68 65 64 54 65 78 74 |rawStret|chedText|
|00004bb0| 75 72 65 28 43 2c 20 32 | 2c 20 30 2c 20 57 2e 57 |ure(C, 2|, 0, W.W|
|00004bc0| 69 6e 57 69 64 74 68 2d | 34 2c 20 32 2c 20 54 65 |inWidth-|4, 2, Te|
|00004bd0| 78 74 75 72 65 27 55 57 | 69 6e 64 6f 77 2e 4d 65 |xture'UW|indow.Me|
|00004be0| 6e 75 54 27 29 3b 0d 0a | 09 57 2e 44 72 61 77 43 |nuT');..|.W.DrawC|
|00004bf0| 6c 69 70 70 65 64 54 65 | 78 74 75 72 65 28 43 2c |lippedTe|xture(C,|
|00004c00| 20 57 2e 57 69 6e 57 69 | 64 74 68 2d 32 2c 20 30 | W.WinWi|dth-2, 0|
|00004c10| 2c 20 54 65 78 74 75 72 | 65 27 55 57 69 6e 64 6f |, Textur|e'UWindo|
|00004c20| 77 2e 4d 65 6e 75 54 52 | 27 29 3b 0d 0a 0d 0a 09 |w.MenuTR|');.....|
|00004c30| 57 2e 44 72 61 77 43 6c | 69 70 70 65 64 54 65 78 |W.DrawCl|ippedTex|
|00004c40| 74 75 72 65 28 43 2c 20 | 30 2c 20 57 2e 57 69 6e |ture(C, |0, W.Win|
|00004c50| 48 65 69 67 68 74 2d 32 | 2c 20 54 65 78 74 75 72 |Height-2|, Textur|
|00004c60| 65 27 55 57 69 6e 64 6f | 77 2e 4d 65 6e 75 42 4c |e'UWindo|w.MenuBL|
|00004c70| 27 29 3b 0d 0a 09 57 2e | 44 72 61 77 53 74 72 65 |');...W.|DrawStre|
|00004c80| 74 63 68 65 64 54 65 78 | 74 75 72 65 28 43 2c 20 |tchedTex|ture(C, |
|00004c90| 32 2c 20 57 2e 57 69 6e | 48 65 69 67 68 74 2d 32 |2, W.Win|Height-2|
|00004ca0| 2c 20 57 2e 57 69 6e 57 | 69 64 74 68 2d 34 2c 20 |, W.WinW|idth-4, |
|00004cb0| 32 2c 20 54 65 78 74 75 | 72 65 27 55 57 69 6e 64 |2, Textu|re'UWind|
|00004cc0| 6f 77 2e 4d 65 6e 75 42 | 27 29 3b 0d 0a 09 57 2e |ow.MenuB|');...W.|
|00004cd0| 44 72 61 77 43 6c 69 70 | 70 65 64 54 65 78 74 75 |DrawClip|pedTextu|
|00004ce0| 72 65 28 43 2c 20 57 2e | 57 69 6e 57 69 64 74 68 |re(C, W.|WinWidth|
|00004cf0| 2d 32 2c 20 57 2e 57 69 | 6e 48 65 69 67 68 74 2d |-2, W.Wi|nHeight-|
|00004d00| 32 2c 20 54 65 78 74 75 | 72 65 27 55 57 69 6e 64 |2, Textu|re'UWind|
|00004d10| 6f 77 2e 4d 65 6e 75 42 | 52 27 29 3b 0d 0a 0d 0a |ow.MenuB|R');....|
|00004d20| 09 57 2e 44 72 61 77 53 | 74 72 65 74 63 68 65 64 |.W.DrawS|tretched|
|00004d30| 54 65 78 74 75 72 65 28 | 43 2c 20 30 2c 20 32 2c |Texture(|C, 0, 2,|
|00004d40| 20 32 2c 20 57 2e 57 69 | 6e 48 65 69 67 68 74 2d | 2, W.Wi|nHeight-|
|00004d50| 34 2c 20 54 65 78 74 75 | 72 65 27 55 57 69 6e 64 |4, Textu|re'UWind|
|00004d60| 6f 77 2e 4d 65 6e 75 4c | 27 29 3b 0d 0a 09 57 2e |ow.MenuL|');...W.|
|00004d70| 44 72 61 77 53 74 72 65 | 74 63 68 65 64 54 65 78 |DrawStre|tchedTex|
|00004d80| 74 75 72 65 28 43 2c 20 | 57 2e 57 69 6e 57 69 64 |ture(C, |W.WinWid|
|00004d90| 74 68 2d 32 2c 20 32 2c | 20 32 2c 20 57 2e 57 69 |th-2, 2,| 2, W.Wi|
|00004da0| 6e 48 65 69 67 68 74 2d | 34 2c 20 54 65 78 74 75 |nHeight-|4, Textu|
|00004db0| 72 65 27 55 57 69 6e 64 | 6f 77 2e 4d 65 6e 75 52 |re'UWind|ow.MenuR|
|00004dc0| 27 29 3b 0d 0a 09 57 2e | 44 72 61 77 53 74 72 65 |');...W.|DrawStre|
|00004dd0| 74 63 68 65 64 54 65 78 | 74 75 72 65 28 43 2c 20 |tchedTex|ture(C, |
|00004de0| 32 2c 20 32 2c 20 57 2e | 57 69 6e 57 69 64 74 68 |2, 2, W.|WinWidth|
|00004df0| 2d 34 2c 20 57 2e 57 69 | 6e 48 65 69 67 68 74 2d |-4, W.Wi|nHeight-|
|00004e00| 34 2c 20 54 65 78 74 75 | 72 65 27 55 57 69 6e 64 |4, Textu|re'UWind|
|00004e10| 6f 77 2e 4d 65 6e 75 41 | 72 65 61 27 29 3b 0d 0a |ow.MenuA|rea');..|
|00004e20| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 4d 65 |}....fun|ction Me|
|00004e30| 6e 75 5f 44 72 61 77 50 | 75 6c 6c 64 6f 77 6e 4d |nu_DrawP|ulldownM|
|00004e40| 65 6e 75 49 74 65 6d 28 | 55 57 69 6e 64 6f 77 50 |enuItem(|UWindowP|
|00004e50| 75 6c 6c 64 6f 77 6e 4d | 65 6e 75 20 4d 2c 20 55 |ulldownM|enu M, U|
|00004e60| 57 69 6e 64 6f 77 50 75 | 6c 6c 64 6f 77 6e 4d 65 |WindowPu|lldownMe|
|00004e70| 6e 75 49 74 65 6d 20 49 | 74 65 6d 2c 20 43 61 6e |nuItem I|tem, Can|
|00004e80| 76 61 73 20 43 2c 20 66 | 6c 6f 61 74 20 58 2c 20 |vas C, f|loat X, |
|00004e90| 66 6c 6f 61 74 20 59 2c | 20 66 6c 6f 61 74 20 57 |float Y,| float W|
|00004ea0| 2c 20 66 6c 6f 61 74 20 | 48 2c 20 62 6f 6f 6c 20 |, float |H, bool |
|00004eb0| 62 53 65 6c 65 63 74 65 | 64 29 0d 0a 7b 0d 0a 09 |bSelecte|d)..{...|
|00004ec0| 43 2e 44 72 61 77 43 6f | 6c 6f 72 2e 52 20 3d 20 |C.DrawCo|lor.R = |
|00004ed0| 32 35 35 3b 0d 0a 09 43 | 2e 44 72 61 77 43 6f 6c |255;...C|.DrawCol|
|00004ee0| 6f 72 2e 47 20 3d 20 32 | 35 35 3b 0d 0a 09 43 2e |or.G = 2|55;...C.|
|00004ef0| 44 72 61 77 43 6f 6c 6f | 72 2e 42 20 3d 20 32 35 |DrawColo|r.B = 25|
|00004f00| 35 3b 0d 0a 0d 0a 09 49 | 74 65 6d 2e 49 74 65 6d |5;.....I|tem.Item|
|00004f10| 54 6f 70 20 3d 20 59 20 | 2b 20 4d 2e 57 69 6e 54 |Top = Y |+ M.WinT|
|00004f20| 6f 70 3b 0d 0a 0d 0a 09 | 69 66 28 49 74 65 6d 2e |op;.....|if(Item.|
|00004f30| 43 61 70 74 69 6f 6e 20 | 3d 3d 20 22 2d 22 29 0d |Caption |== "-").|
|00004f40| 0a 09 7b 0d 0a 09 09 43 | 2e 44 72 61 77 43 6f 6c |..{....C|.DrawCol|
|00004f50| 6f 72 2e 52 20 3d 20 32 | 35 35 3b 0d 0a 09 09 43 |or.R = 2|55;....C|
|00004f60| 2e 44 72 61 77 43 6f 6c | 6f 72 2e 47 20 3d 20 32 |.DrawCol|or.G = 2|
|00004f70| 35 35 3b 0d 0a 09 09 43 | 2e 44 72 61 77 43 6f 6c |55;....C|.DrawCol|
|00004f80| 6f 72 2e 42 20 3d 20 32 | 35 35 3b 0d 0a 09 09 4d |or.B = 2|55;....M|
|00004f90| 2e 44 72 61 77 53 74 72 | 65 74 63 68 65 64 54 65 |.DrawStr|etchedTe|
|00004fa0| 78 74 75 72 65 28 43 2c | 20 58 2c 20 59 2b 35 2c |xture(C,| X, Y+5,|
|00004fb0| 20 57 2c 20 32 2c 20 54 | 65 78 74 75 72 65 27 55 | W, 2, T|exture'U|
|00004fc0| 57 69 6e 64 6f 77 2e 4d | 65 6e 75 44 69 76 69 64 |Window.M|enuDivid|
|00004fd0| 65 72 27 29 3b 0d 0a 09 | 09 72 65 74 75 72 6e 3b |er');...|.return;|
|00004fe0| 0d 0a 09 7d 0d 0a 0d 0a | 09 43 2e 46 6f 6e 74 20 |...}....|.C.Font |
|00004ff0| 3d 20 4d 2e 52 6f 6f 74 | 2e 46 6f 6e 74 73 5b 46 |= M.Root|.Fonts[F|
|00005000| 5f 4e 6f 72 6d 61 6c 5d | 3b 0d 0a 0d 0a 09 69 66 |_Normal]|;.....if|
|00005010| 28 62 53 65 6c 65 63 74 | 65 64 29 0d 0a 09 09 4d |(bSelect|ed)....M|
|00005020| 2e 44 72 61 77 53 74 72 | 65 74 63 68 65 64 54 65 |.DrawStr|etchedTe|
|00005030| 78 74 75 72 65 28 43 2c | 20 58 2c 20 59 2c 20 57 |xture(C,| X, Y, W|
|00005040| 2c 20 48 2c 20 54 65 78 | 74 75 72 65 27 55 57 69 |, H, Tex|ture'UWi|
|00005050| 6e 64 6f 77 2e 4d 65 6e | 75 48 69 67 68 6c 69 67 |ndow.Men|uHighlig|
|00005060| 68 74 27 29 3b 0d 0a 0d | 0a 09 69 66 28 49 74 65 |ht');...|..if(Ite|
|00005070| 6d 2e 62 44 69 73 61 62 | 6c 65 64 29 20 0d 0a 09 |m.bDisab|led) ...|
|00005080| 7b 0d 0a 09 09 2f 2f 20 | 42 6c 61 63 6b 20 53 68 |{....// |Black Sh|
|00005090| 61 64 6f 77 0d 0a 09 09 | 43 2e 44 72 61 77 43 6f |adow....|C.DrawCo|
|000050a0| 6c 6f 72 2e 52 20 3d 20 | 39 36 3b 0d 0a 09 09 43 |lor.R = |96;....C|
|000050b0| 2e 44 72 61 77 43 6f 6c | 6f 72 2e 47 20 3d 20 39 |.DrawCol|or.G = 9|
|000050c0| 36 3b 0d 0a 09 09 43 2e | 44 72 61 77 43 6f 6c 6f |6;....C.|DrawColo|
|000050d0| 72 2e 42 20 3d 20 39 36 | 3b 0d 0a 09 7d 0d 0a 09 |r.B = 96|;...}...|
|000050e0| 65 6c 73 65 0d 0a 09 7b | 0d 0a 09 09 43 2e 44 72 |else...{|....C.Dr|
|000050f0| 61 77 43 6f 6c 6f 72 2e | 52 20 3d 20 30 3b 0d 0a |awColor.|R = 0;..|
|00005100| 09 09 43 2e 44 72 61 77 | 43 6f 6c 6f 72 2e 47 20 |..C.Draw|Color.G |
|00005110| 3d 20 30 3b 0d 0a 09 09 | 43 2e 44 72 61 77 43 6f |= 0;....|C.DrawCo|
|00005120| 6c 6f 72 2e 42 20 3d 20 | 30 3b 0d 0a 09 7d 0d 0a |lor.B = |0;...}..|
|00005130| 0d 0a 09 2f 2f 20 44 72 | 61 77 43 6f 6c 6f 72 20 |...// Dr|awColor |
|00005140| 77 69 6c 6c 20 72 65 6e | 64 65 72 20 74 68 65 20 |will ren|der the |
|00005150| 74 69 63 6b 20 62 6c 61 | 63 6b 20 77 68 69 74 65 |tick bla|ck white|
|00005160| 20 6f 72 20 67 72 61 79 | 2e 0d 0a 09 69 66 28 49 | or gray|....if(I|
|00005170| 74 65 6d 2e 62 43 68 65 | 63 6b 65 64 29 0d 0a 09 |tem.bChe|cked)...|
|00005180| 09 4d 2e 44 72 61 77 43 | 6c 69 70 70 65 64 54 65 |.M.DrawC|lippedTe|
|00005190| 78 74 75 72 65 28 43 2c | 20 58 20 2b 20 31 2c 20 |xture(C,| X + 1, |
|000051a0| 59 20 2b 20 33 2c 20 54 | 65 78 74 75 72 65 27 4d |Y + 3, T|exture'M|
|000051b0| 65 6e 75 54 69 63 6b 27 | 29 3b 0d 0a 0d 0a 09 69 |enuTick'|);.....i|
|000051c0| 66 28 49 74 65 6d 2e 53 | 75 62 4d 65 6e 75 20 21 |f(Item.S|ubMenu !|
|000051d0| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 4d 2e 44 72 61 |= None).|...M.Dra|
|000051e0| 77 43 6c 69 70 70 65 64 | 54 65 78 74 75 72 65 28 |wClipped|Texture(|
|000051f0| 43 2c 20 58 20 2b 20 57 | 20 2d 20 39 2c 20 59 20 |C, X + W| - 9, Y |
|00005200| 2b 20 33 2c 20 54 65 78 | 74 75 72 65 27 4d 65 6e |+ 3, Tex|ture'Men|
|00005210| 75 53 75 62 41 72 72 6f | 77 27 29 3b 0d 0a 0d 0a |uSubArro|w');....|
|00005220| 09 4d 2e 43 6c 69 70 54 | 65 78 74 28 43 2c 20 58 |.M.ClipT|ext(C, X|
|00005230| 20 2b 20 4d 2e 54 65 78 | 74 42 6f 72 64 65 72 20 | + M.Tex|tBorder |
|00005240| 2b 20 32 2c 20 59 20 2b | 20 33 2c 20 49 74 65 6d |+ 2, Y +| 3, Item|
|00005250| 2e 43 61 70 74 69 6f 6e | 2c 20 54 72 75 65 29 3b |.Caption|, True);|
|00005260| 09 0d 0a 7d 0d 0a 0d 0a | 00 |...}....|. |
+--------+-------------------------+-------------------------+--------+--------+